-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreesitter.lua
More file actions
55 lines (49 loc) · 952 Bytes
/
treesitter.lua
File metadata and controls
55 lines (49 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- plugins/treesitter.lua
--- $ figlet -f threepoint theovim
--- _|_|_ _ _ . _ _
--- | | |(/_(_)\/|| | |
---
--- Configure Neovim built-in Treesitter engine
local M = { "nvim-treesitter/nvim-treesitter" }
M.build = ":TSUpdate"
M.opts = {
ensure_installed = {
"bash",
"c",
"cpp",
"go",
"gomod",
"gosum",
"gowork",
"java",
"json",
"latex",
"lua",
"luadoc",
"markdown",
"markdown_inline",
"python",
"query",
"rust",
"toml",
"vim",
"vimdoc",
"yaml",
},
auto_install = false,
highlight = { enable = true, },
indent = { enable = true },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = "<C-s>",
node_decremental = "<M-space>",
},
},
}
M.config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end
return M