From 920c660a2c1db8625ef5b40a401b48d0eb01f0d4 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 11 Dec 2024 21:04:55 -0600 Subject: [PATCH] neovim: break plugins to separate files --- home/modules/tui/neovim/plugins/default.nix | 26 ++------------------ home/modules/tui/neovim/plugins/gitsigns.nix | 11 +++++++++ home/modules/tui/neovim/plugins/trim.nix | 16 ++++++++++++ 3 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 home/modules/tui/neovim/plugins/gitsigns.nix create mode 100644 home/modules/tui/neovim/plugins/trim.nix diff --git a/home/modules/tui/neovim/plugins/default.nix b/home/modules/tui/neovim/plugins/default.nix index 8e9d8d2..8339ce9 100644 --- a/home/modules/tui/neovim/plugins/default.nix +++ b/home/modules/tui/neovim/plugins/default.nix @@ -3,12 +3,14 @@ ./barbar.nix ./comment.nix ./floaterm.nix + ./gitsigns.nix ./harpoon.nix ./lsp.nix ./md-preview.nix ./neo-tree.nix ./telescope.nix ./treesitter.nix + ./trim.nix ]; programs.nixvim = { @@ -17,36 +19,12 @@ plugins = { web-devicons.enable = true; - gitsigns = { - enable = true; - settings.signs = { - add.text = "+"; - change.text = "~"; - delete.text = "-"; - }; - }; - nvim-autopairs.enable = true; nvim-colorizer = { enable = true; userDefaultOptions.names = false; }; - - trim = { - enable = true; - settings = { - highlight = false; - trim_last_line = false; - ft_blocklist = [ - "checkhealth" - "floaterm" - "lsipinfo" - "neo-tree" - "TelescopePrompt" - ]; - }; - }; }; }; } diff --git a/home/modules/tui/neovim/plugins/gitsigns.nix b/home/modules/tui/neovim/plugins/gitsigns.nix new file mode 100644 index 0000000..26a91c6 --- /dev/null +++ b/home/modules/tui/neovim/plugins/gitsigns.nix @@ -0,0 +1,11 @@ +{ + programs.nixvim.plugins.gitsigns = { + enable = true; + settings.signs = { + add.text = "+"; + change.text = "~"; + delete.text = "-"; + }; + }; +} + diff --git a/home/modules/tui/neovim/plugins/trim.nix b/home/modules/tui/neovim/plugins/trim.nix new file mode 100644 index 0000000..3e99dd9 --- /dev/null +++ b/home/modules/tui/neovim/plugins/trim.nix @@ -0,0 +1,16 @@ +{ + programs.nixvim.plugins.trim = { + enable = true; + settings = { + highlight = false; + trim_last_line = false; + ft_blocklist = [ + "checkhealth" + "floaterm" + "lsipinfo" + "neo-tree" + "TelescopePrompt" + ]; + }; + }; +}