Configure tree-sitter-nvim

This commit is contained in:
buffet 2022-08-14 00:01:29 +00:00
parent 1690ebf4a1
commit 4693ca1f22

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
lib,
pkgs,
...
}: {
home-manager.users.buffet = { home-manager.users.buffet = {
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
@ -81,8 +85,15 @@
tree-sitter-rust tree-sitter-rust
tree-sitter-toml 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
]; ];
}; };
}; };