Configure tree-sitter-nvim
This commit is contained in:
parent
1690ebf4a1
commit
4693ca1f22
1 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue