added ftpluginconfig for shell, to run script from file with sh
This commit is contained in:
parent
2af7854eda
commit
589489cac8
1 changed files with 5 additions and 0 deletions
5
nvim/.config/nvim/ftplugin/sh.lua
Normal file
5
nvim/.config/nvim/ftplugin/sh.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Run python from file
|
||||
vim.api.nvim_buf_set_keymap(0, "n", "<leader>c", ":exec 'w' <bar> :exec '!sh %'<cr>", {})
|
||||
vim.api.nvim_buf_set_keymap(0, "n", "<F5>", ":exec 'w' <bar> :exec '!sh %'<cr>", {})
|
||||
vim.api.nvim_buf_set_keymap(0, "i", "<F5>", ":exec 'w' <bar> :exec '!sh %'<cr>", {})
|
||||
vim.api.nvim_buf_set_keymap(0, "v", "<F5>", ":exec 'w' <bar> :exec '!sh %'<cr>", {})
|
Loading…
Add table
Add a link
Reference in a new issue