From 0e0ac190f250ad29afd370d3872ee28fd7d9b78a Mon Sep 17 00:00:00 2001 From: Nicolai Van der Storm Date: Tue, 24 Oct 2023 11:45:24 +0200 Subject: [PATCH] added toggleterm.nvim --- nix/users/base/neovim/default.nix | 5 +++++ nix/users/base/neovim/plugins/toggleterm.lua | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 nix/users/base/neovim/plugins/toggleterm.lua diff --git a/nix/users/base/neovim/default.nix b/nix/users/base/neovim/default.nix index dbd50c1..ccf8ba9 100644 --- a/nix/users/base/neovim/default.nix +++ b/nix/users/base/neovim/default.nix @@ -125,6 +125,11 @@ ])); config = toLuaFile ./plugins/treesitter.lua; } + + { + plugin = toggleterm-nvim; + config = toLuaFile ./plugins/toggleterm.lua; + } ]; extraLuaConfig = '' diff --git a/nix/users/base/neovim/plugins/toggleterm.lua b/nix/users/base/neovim/plugins/toggleterm.lua new file mode 100644 index 0000000..9a26be8 --- /dev/null +++ b/nix/users/base/neovim/plugins/toggleterm.lua @@ -0,0 +1,10 @@ +local status, plugin = pcall(require,'toggleterm') +if not status then + print('Error with plugin: ', plugin) + return +end +plugin.setup({ + size = 10, + open_mapping = [[]], + direction = 'horizontal', +}) \ No newline at end of file