neovim update

This commit is contained in:
RafayAhmad7548 2026-06-18 14:22:57 +05:00
parent 5e95811278
commit 8968f14331
Signed by: RafayAhmad
SSH key fingerprint: SHA256:WURX8viobA1uawb4dWM3LqYrY+XPcZcXhAXAlrYdhtE
4 changed files with 9 additions and 3 deletions

View file

@ -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' })

View file

@ -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