From 0d59a43a458e2c35e492de16a62340f8478cf606 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 11 May 2023 08:21:13 +0200 Subject: [PATCH] feat: add :BufOnly command to nvim --- home-manager/neovim/commands.lua | 1 + home-manager/neovim/default.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 home-manager/neovim/commands.lua 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 }