feat: nixvim configuration init
This commit is contained in:
35
config/modules/plugins/treesitter.nix
Normal file
35
config/modules/plugins/treesitter.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
indent = {
|
||||
enable = true;
|
||||
};
|
||||
highlight = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
nixvimInjections = true;
|
||||
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
|
||||
};
|
||||
|
||||
treesitter-context = {
|
||||
enable = false;
|
||||
};
|
||||
|
||||
treesitter-textobjects = {
|
||||
enable = true;
|
||||
select = {
|
||||
enable = true;
|
||||
lookahead = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
extraConfigLua = ''
|
||||
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user