Skip to content

Commit

Permalink
nvim/keymaps: use bufdelete.nvim plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Jul 29, 2024
1 parent b31c541 commit d3882c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nvim/config/keymaps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ in
{
mode = "n";
key = "<leader>bd";
action = "<cmd>bd<CR>";
action = "<cmd>Bdelete<CR>";
options.desc = "Delete the current buffer";
}

Expand Down Expand Up @@ -206,6 +206,9 @@ in
};
};

# Provides a `:bd` alternative that doesn't change window layout
plugins.bufdelete.enable = true;

# TODO: use the upcoming `plugins.which-key.settings` options
extraConfigLua = /* lua */ ''
-- Register which-key groups
Expand Down

0 comments on commit d3882c1

Please sign in to comment.