From 4693ca1f22819ebcfb81b49557f50c7ac94bf038 Mon Sep 17 00:00:00 2001 From: buffet Date: Sun, 14 Aug 2022 00:01:29 +0000 Subject: [PATCH] Configure tree-sitter-nvim --- programs/nvim.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/programs/nvim.nix b/programs/nvim.nix index b04b69c..afde497 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: { home-manager.users.buffet = { home.sessionVariables = { EDITOR = "nvim"; @@ -81,8 +85,15 @@ tree-sitter-rust tree-sitter-toml ]); + config = lib.concatStrings (lib.splitString "\n" '' + lua require 'nvim-treesitter.configs'.setup { + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + } + ''); } - # TODO: tree-sitter config ]; }; };