From af506f6f0d396c997204c272b704d3f4d0644aa7 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 16 Oct 2023 18:53:25 +0200 Subject: [PATCH] install treesitter for neovim --- home/neovim/default.nix | 1 + home/neovim/neovim.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/home/neovim/default.nix b/home/neovim/default.nix index a03249b..6ad5263 100644 --- a/home/neovim/default.nix +++ b/home/neovim/default.nix @@ -32,6 +32,7 @@ neodev-nvim luasnip cmp_luasnip + nvim-treesitter.withAllGrammars ]; }; diff --git a/home/neovim/neovim.lua b/home/neovim/neovim.lua index f0b20e7..18bb42b 100644 --- a/home/neovim/neovim.lua +++ b/home/neovim/neovim.lua @@ -137,3 +137,14 @@ cmp.setup { { name = 'luasnip' }, }, } + +--[ TREESITTER ]--- +require('nvim-treesitter.configs').setup { + ensure_installed = {}, + + auto_install = false, + + highlight = { enable = true }, + + indent = { enable = true }, +}