2021-12-14 19:06:36 +01:00
|
|
|
--[[ local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
2021-09-25 19:15:14 +02:00
|
|
|
parser_config.rsh = {
|
2021-11-05 23:28:40 +01:00
|
|
|
install_info = {
|
|
|
|
|
url = "https://github.com/traxys/tree-sitter-rsh/", -- local path or git repo
|
|
|
|
|
files = { "src/parser.c" },
|
|
|
|
|
},
|
2021-09-25 19:15:14 +02:00
|
|
|
}
|
2021-12-14 19:06:36 +01:00
|
|
|
]]
|
2021-12-15 10:18:31 +01:00
|
|
|
|
2021-11-05 23:28:40 +01:00
|
|
|
require("nvim-treesitter.configs").setup({
|
|
|
|
|
ensure_installed = {
|
|
|
|
|
"rust",
|
|
|
|
|
"c",
|
|
|
|
|
"cpp",
|
|
|
|
|
"json",
|
|
|
|
|
"lua",
|
|
|
|
|
"python",
|
|
|
|
|
"toml",
|
|
|
|
|
"latex",
|
|
|
|
|
"nix",
|
|
|
|
|
"vue",
|
|
|
|
|
"javascript",
|
|
|
|
|
"dart",
|
2021-12-14 19:06:36 +01:00
|
|
|
--"rsh",
|
2021-11-05 23:28:40 +01:00
|
|
|
},
|
2021-06-29 13:41:53 +02:00
|
|
|
ident = {
|
2021-11-05 23:28:40 +01:00
|
|
|
enable = true,
|
2021-06-29 13:41:53 +02:00
|
|
|
},
|
2021-06-20 18:55:56 +02:00
|
|
|
highlight = {
|
2021-11-05 23:28:40 +01:00
|
|
|
enable = true, -- false will disable the whole extension
|
|
|
|
|
disable = { "elixir", "teal" }, -- list of language that will be disabled
|
2021-06-20 18:55:56 +02:00
|
|
|
},
|
|
|
|
|
refactor = {
|
|
|
|
|
highlight_definitions = { enable = true },
|
|
|
|
|
highlight_current_scope = { enable = false },
|
|
|
|
|
smart_rename = {
|
|
|
|
|
enable = true,
|
|
|
|
|
keymaps = {
|
|
|
|
|
smart_rename = "grr",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2021-11-05 23:28:40 +01:00
|
|
|
})
|