From aeccc22857e8256e839aa2194b84391686878b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 9 Jan 2024 00:12:35 +0100 Subject: [PATCH] vim: Replace old plugin with rainbow-delimiter In case you're wondering https://github.com/lukas-reineke/indent-blankline.nvim/tree/3c8a185da4b8ab7aef487219f5e001b11d4b6aaf?tab=readme-ov-file#rainbow-delimitersnvim-integration is not worth the trouble... --- hm/dev/common.nix | 2 +- hm/vim/default.nix | 10 ++++------ hm/vim/nvim-ts-rainbow.lua | 7 ------- 3 files changed, 5 insertions(+), 14 deletions(-) delete mode 100644 hm/vim/nvim-ts-rainbow.lua diff --git a/hm/dev/common.nix b/hm/dev/common.nix index cecaa97..db41177 100644 --- a/hm/dev/common.nix +++ b/hm/dev/common.nix @@ -9,7 +9,7 @@ jq yq universal-ctags - highlight + cloc # Network socat diff --git a/hm/vim/default.nix b/hm/vim/default.nix index 3587883..74c7da3 100644 --- a/hm/vim/default.nix +++ b/hm/vim/default.nix @@ -185,7 +185,10 @@ in # indent = true; # Not very working last time I tried apparently }; # TODO Investigate https://github.com/nvim-treesitter/nvim-treesitter-textobjects - indent-blankline.enable = true; # TODO integrate with rainbow-delimiters and use more of the options + + rainbow-delimiters.enable = true; # Randomly colore paired brackets + + indent-blankline.enable = true; # Show indent guides undotree.enable = true; # Navigate edition history @@ -227,10 +230,6 @@ in # Language server lsp_signature-nvim # Show argument definition when typing a function - # Treesitter - nvim-ts-rainbow # Randomly color parenthesis pairs - # TODO Replace with plugins.rainbow-delimiters - # Snippets vim-vsnip vim-vsnip-integ @@ -258,7 +257,6 @@ in ./feline.lua ./symbols-outline-nvim.lua ./lsp_signature-nvim.lua - ./nvim-ts-rainbow.lua ./nvim-compe.lua ]; extraConfigVim = '' diff --git a/hm/vim/nvim-ts-rainbow.lua b/hm/vim/nvim-ts-rainbow.lua deleted file mode 100644 index 2047385..0000000 --- a/hm/vim/nvim-ts-rainbow.lua +++ /dev/null @@ -1,7 +0,0 @@ -require'nvim-treesitter.configs'.setup { - rainbow = { - enable = true, - extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean - max_file_lines = 1000, -- Do not enable for files with more than 1000 lines, int - } -}