From a19375707d632c7eca5069d494e060998a9a8be8 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 4 Jan 2022 01:22:12 +0100 Subject: [PATCH] Add tree sitter plugin --- conf/nvim/lua/plugins-options.lua | 4 ++++ conf/nvim/lua/plugins.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/conf/nvim/lua/plugins-options.lua b/conf/nvim/lua/plugins-options.lua index 2c5c315..75c6038 100644 --- a/conf/nvim/lua/plugins-options.lua +++ b/conf/nvim/lua/plugins-options.lua @@ -24,3 +24,7 @@ vim.g['grammalecte_cli_py'] = '/usr/bin/grammalecte-cli' -- Deoplete vim.g['deoplete#enable_at_startup'] = 1 + +-- Tree sitter +local ts = require 'nvim-treesitter.configs' +ts.setup {ensure_installed = 'maintained', highlight = {enable = true}} diff --git a/conf/nvim/lua/plugins.lua b/conf/nvim/lua/plugins.lua index 067c863..251ab1d 100644 --- a/conf/nvim/lua/plugins.lua +++ b/conf/nvim/lua/plugins.lua @@ -21,4 +21,8 @@ paq { 'zchee/deoplete-jedi'; -- Grammalecte 'dpelle/vim-Grammalecte'; + + -- need to install g++ package on Debian + -- for tree sitter plugins + 'nvim-treesitter/nvim-treesitter' }