mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
enc: update default config ts rust
This commit is contained in:
parent
ebe7697c5e
commit
66d401335e
4 changed files with 23 additions and 6 deletions
|
@ -31,5 +31,6 @@ end
|
|||
if pcode.acive_rust_config then
|
||||
table.insert(pcode.mason_ensure_installed, "rust_analyzer")
|
||||
table.insert(pcode.unregister_lsp, "rust_analyzer")
|
||||
table.insert(pcode.treesitter_ensure_installed, "rust")
|
||||
end
|
||||
return {}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
local ts_list = {
|
||||
"lua",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
}
|
||||
for _, ts in pairs(pcode.treesitter_ensure_installed or {}) do
|
||||
table.insert(ts_list, ts)
|
||||
end
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
|
@ -65,11 +73,7 @@ return {
|
|||
return {
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
},
|
||||
ensure_installed = ts_list,
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue