mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-15 12:12:58 +00:00
58 lines
1.0 KiB
Lua
58 lines
1.0 KiB
Lua
require('nvim-treesitter.configs').setup({
|
|
ensure_installed = {
|
|
'bash',
|
|
'comment',
|
|
'css',
|
|
'gitignore',
|
|
'glimmer',
|
|
'html',
|
|
'javascript',
|
|
'json',
|
|
'json5',
|
|
'jsonc',
|
|
'lua',
|
|
'markdown',
|
|
'php',
|
|
'python',
|
|
'regex',
|
|
'ruby',
|
|
'scss',
|
|
'sql',
|
|
'toml',
|
|
'tsx',
|
|
'typescript',
|
|
'vim',
|
|
'vue',
|
|
'yaml',
|
|
},
|
|
highlight = { enable = true },
|
|
indent = { enable = true },
|
|
autotag = { enable = true },
|
|
matchup = { enable = true },
|
|
refactor = {
|
|
highlight_definitions = {
|
|
enable = true,
|
|
clear_on_cursor_move = true,
|
|
},
|
|
navigation = {
|
|
enable = true,
|
|
keymaps = {
|
|
goto_definition = 'gd',
|
|
list_definitions = 'gl',
|
|
list_definitions_toc = false,
|
|
goto_next_usage = 'gn',
|
|
goto_previous_usage = 'gp',
|
|
},
|
|
},
|
|
smart_rename = {
|
|
enable = true,
|
|
keymaps = {
|
|
smart_rename = 'gr',
|
|
},
|
|
},
|
|
|
|
},
|
|
})
|
|
|
|
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
|