diff --git a/home-manager/neovim/commands.lua b/home-manager/neovim/commands.lua new file mode 100644 index 0000000..10e03a5 --- /dev/null +++ b/home-manager/neovim/commands.lua @@ -0,0 +1 @@ +vim.api.nvim_create_user_command("BufOnly", "%bd|e#|bd#", {}) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index de2e560..bdf7408 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -162,6 +162,7 @@ in ${builtins.readFile ./keymaps.lua } ${builtins.readFile ./options.lua } + ${builtins.readFile ./commands.lua } ${builtins.readFile ./treesitter.lua } ${builtins.readFile ./lspconfig.lua } ${builtins.readFile ./toggleterm.lua }