execute pyton code by pressing <F9>
This commit is contained in:
parent
9f70f4a641
commit
a5d7389b6a
3
init.lua
3
init.lua
|
@ -164,6 +164,9 @@ vim.opt.confirm = true
|
|||
-- [[ Basic Keymaps ]]
|
||||
-- See `:help vim.keymap.set()`
|
||||
|
||||
-- execute python code
|
||||
vim.keymap.set('n', '<F9>', '<cmd>:pyf %<CR>')
|
||||
|
||||
-- Clear highlights on search when pressing <Esc> in normal mode
|
||||
-- See `:help hlsearch`
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
|
Loading…
Reference in New Issue