mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(Neovim): Sensible keymaps, prune plugins, Kickstart.nvim LSP code
This commit is contained in:
@@ -52,6 +52,12 @@ vim.keymap.set({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Sav
|
||||
vim.keymap.set({ "i", "x", "n", "s" }, "<C-q>", "<cmd>wqa<cr><esc>", { desc = "Save all files and Quit Neovim" })
|
||||
|
||||
-- Close Current Buffer
|
||||
vim.keymap.set({ "n", "v" }, "<leader>bx", function()
|
||||
if vim.bo.modified then
|
||||
vim.cmd.write()
|
||||
end
|
||||
vim.cmd("bdelete")
|
||||
end, { desc = "Save and close current buffer" })
|
||||
vim.keymap.set({ "n", "v" }, "<leader>xb", function()
|
||||
if vim.bo.modified then
|
||||
vim.cmd.write()
|
||||
|
||||
Reference in New Issue
Block a user