]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/nvim/lua/plugins/nvim-treesitter.lua
neovim: configure, using ghostty and tmux
[julm/julm-nix.git] / home-manager / profiles / nvim / lua / plugins / nvim-treesitter.lua
1 -- Nvim Treesitter configurations and abstraction layer.
2 -- https://github.com/nvim-treesitter/nvim-treesitter
3 return {
4 "nvim-treesitter",
5 lazy = false,
6 after = function()
7 require("nvim-treesitter.configs").setup({
8 -- Disable imperative treesitter options that would attempt to fetch
9 -- grammars into the read-only Nix store.
10 auto_install = false,
11 sync_install = false,
12 ensure_installed = {},
13
14 -- Indentation module for Treesitter
15 indent = {
16 enable = true,
17 disable = {},
18 },
19
20 -- Highlight module for Treesitter
21 highlight = {
22 enable = true,
23 disable = {},
24 -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
25 -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
26 -- Using this option may slow down your editor, and you may see some duplicate highlights.
27 -- Instead of true it can also be a list of languages
28 additional_vim_regex_highlighting = false,
29 },
30
31 -- Indentation module for Treesitter
32 incremental_selection = {
33 enable = true,
34 disable = {},
35 keymaps = {
36 init_selection = false,
37 node_incremental = false,
38 scope_incremental = false,
39 node_decremental = false,
40 },
41 },
42 })
43 end,
44 }