My simple neovim config
1return {
2 "nvim-treesitter/nvim-treesitter",
3 build = ":TSUpdate",
4 config = function()
5 require("nvim-treesitter.configs").setup({
6 ensure_installed = {
7 "bash",
8 "c",
9 "dockerfile",
10 "gitcommit",
11 "go",
12 "gomod",
13 "lua",
14 "python",
15 "query",
16 "rust",
17 "toml",
18 "yaml",
19 "just",
20 },
21 highlight = {
22 enable = true,
23 },
24 playground = {
25 enable = true,
26 },
27 -- Potentially remove, this is not really in my roation yet
28 incremental_selection = {
29 enable = true,
30 keymaps = {
31 init_selection = "<c-space>",
32 node_incremental = "<c-space>",
33 scope_incremental = "<c-s>",
34 node_decremental = "<c-backspace>",
35 },
36 },
37 sync_install = false,
38 auto_install = false,
39 ignore_install = {},
40 modules = {},
41 })
42 end,
43
44 {
45 "nvim-treesitter/nvim-treesitter-context",
46 event = "VeryLazy",
47 },
48
49 -- Treesitter Consistent Syntax Highlighting and indent
50}