chore(neovim):

- Keymap: remove <tab> to switch buffer
- Completion: Remove mini.completion plugins - conflicting
- Completion: Use luasnip buffer for completion
- Lua: Use lazydev for better nvim lua diagnostics
This commit is contained in:
Pratik Tripathy
2024-12-16 21:46:06 +05:30
parent cb7053fdce
commit 20b3597501
5 changed files with 26 additions and 8 deletions

View File

@@ -41,12 +41,6 @@ vim.keymap.set("i", ".", ".<C-g>u", { desc = "Auto add undo breakpoints on '.'"
vim.keymap.set("i", ";", ";<C-g>u", { desc = "Auto add undo breakpoints on ';'" })
vim.keymap.set("i", "\r", "\r<C-g>u", { desc = "Auto add undo breakpoints on new lines" })
-- Traverse Buffer
if require("config.util").is_not_vscode() then
vim.keymap.set("n", "<Tab>", "<cmd>bnext<CR>", { desc = "Switch to next buffer" })
vim.keymap.set("n", "<S-Tab>", "<cmd>bprevious<CR>", { desc = "Switch to previous buffer" })
end
-- Save file
vim.keymap.set({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })
vim.keymap.set({ "i", "x", "n", "s" }, "<C-q>", "<cmd>wqa<cr><esc>", { desc = "Save all files and Quit Neovim" })