fixed nvim-treesitter for changes.

This commit is contained in:
Gabe Venberg 2026-01-04 15:30:38 +01:00
parent fa9fd6626b
commit 89b6a830f8
2 changed files with 5 additions and 14 deletions

6
flake.lock generated
View file

@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1767026758, "lastModified": 1767364772,
"narHash": "sha256-7fsac/f7nh/VaKJ/qm3I338+wAJa/3J57cOGpXi0Sbg=", "narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "346dd96ad74dc4457a9db9de4f4f57dab2e5731d", "rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -16,24 +16,15 @@ return {
after = function(plugin) after = function(plugin)
-- [[ Configure Treesitter ]] -- [[ Configure Treesitter ]]
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup { require('nvim-treesitter').setup {
highlight = { enable = true, }, highlight = { enable = true, },
indent = { enable = false, }, indent = { enable = false, },
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<c-space>',
node_incremental = '<c-space>',
scope_incremental = '<c-s>',
node_decremental = '<M-space>',
},
},
} }
end, end,
}, },
{ {
"comment.nvim", "comment.nvim",
for_cat = 'telescope', for_cat = 'treesitter',
after = function(plugin) after = function(plugin)
require('Comment').setup() require('Comment').setup()
end, end,