all repos — dotfiles @ 95da48066c0076861612780a17e0abac8cff6cef

my *nix dotfiles

nvim/lua/treesitter.lua (view raw)

 1require 'nvim-treesitter.configs'.setup {
 2  highlight = {
 3    enable = true,
 4  },
 5  indent = {
 6    enable = true,
 7  },
 8  textobjects = {
 9    select = {
10      enable = true,
11      lookahead = true,
12      keymaps = {
13        ["af"] = "@function.outer",
14        ["if"] = "@function.inner",
15        ["ac"] = "@class.outer",
16        ["ic"] = "@class.inner",
17      },
18    },
19    move = {
20      enable = true,
21      set_jumps = true,
22      goto_next_start = {
23        ["]m"] = "@function.outer",
24        ["]]"] = "@class.outer",
25      },
26      goto_next_end = {
27        ["]M"] = "@function.outer",
28        ["]["] = "@class.outer",
29      },
30      goto_previous_start = {
31        ["[m"] = "@function.outer",
32        ["[["] = "@class.outer",
33      },
34      goto_previous_end = {
35        ["[M"] = "@function.outer",
36        ["[]"] = "@class.outer",
37      },
38    },
39  }
40}