Skip to content

Commit a5d7389

Browse files
committed
execute pyton code by pressing <F9>
1 parent 9f70f4a commit a5d7389

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ vim.opt.confirm = true
164164
-- [[ Basic Keymaps ]]
165165
-- See `:help vim.keymap.set()`
166166

167+
-- execute python code
168+
vim.keymap.set('n', '<F9>', '<cmd>:pyf %<CR>')
169+
167170
-- Clear highlights on search when pressing <Esc> in normal mode
168171
-- See `:help hlsearch`
169172
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')

0 commit comments

Comments
 (0)