From 068a8c9965e7856f62619a9525213cf73f455041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Wed, 1 Nov 2023 09:17:01 +0100 Subject: [PATCH] nix: Add vim treesitter plugins --- .../roles/vim/templates/pluginlist.j2 | 9 --- .../vim/templates/plugins/indent-blankline.j2 | 3 - .../roles/vim/templates/plugins/treesitter.j2 | 66 ------------------- config/nix/hm/vim.nix | 16 +++++ .../hm/vim/nvim-ts-rainbow.lua} | 4 -- 5 files changed, 16 insertions(+), 82 deletions(-) delete mode 100644 config/automatrop/roles/vim/templates/plugins/indent-blankline.j2 delete mode 100644 config/automatrop/roles/vim/templates/plugins/treesitter.j2 rename config/{automatrop/roles/vim/templates/plugins/ts-rainbow.j2 => nix/hm/vim/nvim-ts-rainbow.lua} (73%) diff --git a/config/automatrop/roles/vim/templates/pluginlist.j2 b/config/automatrop/roles/vim/templates/pluginlist.j2 index abaa6be..aee12e7 100644 --- a/config/automatrop/roles/vim/templates/pluginlist.j2 +++ b/config/automatrop/roles/vim/templates/pluginlist.j2 @@ -16,15 +16,6 @@ " Theme source ~/.config/vim/theme.vim -" Treesitter -{% if variant == 'nvim' %} -{{ use_plugin('treesitter') }} -{{ use_plugin('ts-rainbow') }} -{# TODO -{{ use_plugin('indent-blankline') }} -#} -{% endif %} - " Snippets {{ use_plugin('vsnip') }} diff --git a/config/automatrop/roles/vim/templates/plugins/indent-blankline.j2 b/config/automatrop/roles/vim/templates/plugins/indent-blankline.j2 deleted file mode 100644 index 138e4b1..0000000 --- a/config/automatrop/roles/vim/templates/plugins/indent-blankline.j2 +++ /dev/null @@ -1,3 +0,0 @@ -{# Show ident lines #} -{{ add_source('lukas-reineke/indent-blankline.nvim') -}} -let g:indent_blankline_char_highlight_list = ['Error', 'Function'] diff --git a/config/automatrop/roles/vim/templates/plugins/treesitter.j2 b/config/automatrop/roles/vim/templates/plugins/treesitter.j2 deleted file mode 100644 index 0bfeba3..0000000 --- a/config/automatrop/roles/vim/templates/plugins/treesitter.j2 +++ /dev/null @@ -1,66 +0,0 @@ -{# Allow for better syntax highlighting. Bit experimental #} -{{ add_source('nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}) -}} -{# To check if it's really working -{{ add_source('nvim-treesitter/playground') -}} -#} -lua <