Skip to content

Commit

Permalink
feat(nvim): use bufdelete.nvim
Browse files Browse the repository at this point in the history
:bd messes with the layout, and I constantly lose my split over it.
  • Loading branch information
caarlos0 committed Jan 10, 2024
1 parent 0215429 commit 37cff82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/neovim/config/lua/user/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ keymap("n", "<A-Left>", ":vertical resize -2<CR>", opts)
keymap("n", "<A-Right>", ":vertical resize +2<CR>", opts)

-- buffer killing
keymap("n", "<leader>q", ":bd<CR>", opts) -- delete current buffer
keymap("n", "<leader>q", ":Bdelete<CR>", opts) -- delete current buffer
keymap("n", "<leader>bad", ":%bd!<cr>:intro<cr>", opts) -- delete all buffers
-- delete surrounding buffers, make sure to keep the cursor position
keymap("n", "<leader>bsd", function()
Expand Down
1 change: 1 addition & 0 deletions modules/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ in
auto-hlsearch-nvim
vim-tmux-navigator
better-escape-nvim
bufdelete-nvim

# coding
nvim-lspconfig
Expand Down

0 comments on commit 37cff82

Please sign in to comment.