neovim update
This commit is contained in:
parent
5e95811278
commit
8968f14331
4 changed files with 9 additions and 3 deletions
|
|
@ -26,6 +26,10 @@ vim.keymap.set({ 'n', 'v', 'o' }, '#', '_', { desc = '# start of line' })
|
|||
-- save / quit
|
||||
vim.keymap.set('n', '<C-s>', ':w<CR>', { desc = 'ctrl-s save' })
|
||||
vim.keymap.set('n', '<C-w>', Snacks.bufdelete.delete, { desc = 'save and close', nowait = true })
|
||||
vim.keymap.set('n', '<C-S-w>', function ()
|
||||
Snacks.bufdelete.delete()
|
||||
vim.cmd('q')
|
||||
end, { desc = 'save and close', nowait = true })
|
||||
|
||||
-- delete word in insert mode
|
||||
vim.keymap.set('i', '<C-BS>', '<C-w>', { desc = 'delete word in insert mode' })
|
||||
|
|
|
|||
|
|
@ -56,4 +56,5 @@ package.path = package.path .. ';' .. vim.fn.expand('$HOME') .. '/.luarocks/shar
|
|||
package.path = package.path .. ';' .. vim.fn.expand('$HOME') .. '/.luarocks/share/lua/5.1/?.lua;'
|
||||
|
||||
vim.env.GIT_EDITOR = 'nvr -cc tabnew --remote-wait-silent'
|
||||
vim.env.NVIM_LISTEN_ADDRESS = vim.fn.execute('echo v:servername')
|
||||
vim.env.MANPAGER = 'nvr -cc tabnew --remote-wait-silent +Man! -'
|
||||
vim.env.NVIM_LISTEN_ADDRESS = vim.v.servername
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue