You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
Lua
52 lines
1.6 KiB
Lua
local configs = require("nvim-treesitter.configs")
|
|
configs.setup {
|
|
ensure_installed = "maintained",
|
|
sync_install = false,
|
|
ignore_install = { "haskell" }, -- List of parsers to ignore installing
|
|
highlight = {
|
|
enable = true, -- false will disable the whole extension
|
|
disable = { "" }, -- list of language that will be disabled
|
|
additional_vim_regex_highlighting = true,
|
|
|
|
},
|
|
indent = { enable = true, disable = { "yaml" } },
|
|
require("nvim-treesitter.configs").setup {
|
|
highlight = {
|
|
-- ...
|
|
},
|
|
-- ...
|
|
rainbow = {
|
|
enable = true,
|
|
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
|
|
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
|
max_file_lines = nil, -- Do not enable for files with more than n lines, int
|
|
-- colors = {}, -- table of hex strings
|
|
-- termcolors = {} -- table of colour name strings
|
|
}
|
|
},
|
|
require "nvim-treesitter.configs".setup {
|
|
playground = {
|
|
enable = true,
|
|
disable = {},
|
|
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
|
|
persist_queries = false, -- Whether the query persists across vim sessions
|
|
keybindings = {
|
|
toggle_query_editor = 'o',
|
|
toggle_hl_groups = 'i',
|
|
toggle_injected_languages = 't',
|
|
toggle_anonymous_nodes = 'a',
|
|
toggle_language_display = 'I',
|
|
focus_language = 'f',
|
|
unfocus_language = 'F',
|
|
update = 'R',
|
|
goto_node = '<cr>',
|
|
show_help = '?',
|
|
},
|
|
}
|
|
},
|
|
context_commentstring = {
|
|
enable = true,
|
|
enable_autocmd = false,
|
|
},
|
|
}
|