mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-19 14:44:46 +01:00
updated treesitter, removed many ls needing extra programs
This commit is contained in:
@@ -28,13 +28,13 @@ return {
|
|||||||
-- c
|
-- c
|
||||||
"clangd",
|
"clangd",
|
||||||
-- docker
|
-- docker
|
||||||
"dockerls",
|
-- "dockerls", -- TODO: needs extra steps to install (npm)
|
||||||
-- go
|
-- go
|
||||||
"gopls",
|
-- "gopls", -- TODO: needs extra steps to install (go)
|
||||||
-- html
|
-- html
|
||||||
"html",
|
-- "html", -- TODO: needs extra steps to install (npm)
|
||||||
-- json
|
-- json
|
||||||
"jsonls",
|
-- "jsonls", -- TODO: needs extra steps to install (npm)
|
||||||
-- xml
|
-- xml
|
||||||
"lemminx",
|
"lemminx",
|
||||||
-- latex
|
-- latex
|
||||||
@@ -47,17 +47,17 @@ return {
|
|||||||
-- nim
|
-- nim
|
||||||
-- "nimls", -- TODO: needs extra steps to install (nimble)
|
-- "nimls", -- TODO: needs extra steps to install (nimble)
|
||||||
-- python
|
-- python
|
||||||
"pyright",
|
-- "pyright", -- TODO: needs extra steps to install (npm)
|
||||||
-- r
|
-- r
|
||||||
-- "r_language_server", -- TODO: installation takes really long
|
-- "r_language_server", -- TODO: installation takes really long
|
||||||
-- shell
|
-- shell
|
||||||
"bashls",
|
-- "bashls", -- TODO: needs extra steps to install (npm)
|
||||||
-- sql
|
-- sql
|
||||||
"sqlls",
|
-- "sqlls", -- TODO: needs extra steps to install (npm)
|
||||||
-- typescript / javascript
|
-- typescript / javascript
|
||||||
"ts_ls",
|
-- "ts_ls", -- TODO: needs extra steps to install (npm)
|
||||||
-- yaml
|
-- yaml
|
||||||
"yamlls",
|
-- "yamlls", -- TODO: needs extra steps to install (npm)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
local default_flags = {
|
local default_flags = {
|
||||||
|
|||||||
@@ -9,8 +9,9 @@ return {
|
|||||||
-- 'p00f/nvim-ts-rainbow',
|
-- 'p00f/nvim-ts-rainbow',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter.config").setup({
|
local treesitter = require("nvim-treesitter")
|
||||||
ensure_installed = {
|
treesitter.setup()
|
||||||
|
treesitter.install({
|
||||||
"bash",
|
"bash",
|
||||||
"css",
|
"css",
|
||||||
"html",
|
"html",
|
||||||
@@ -21,16 +22,20 @@ return {
|
|||||||
"rust",
|
"rust",
|
||||||
"lua",
|
"lua",
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
})
|
||||||
|
require("nvim-ts-autotag").setup({
|
||||||
|
opts = {
|
||||||
|
enable_close = true,
|
||||||
|
enable_rename = true,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
-- WARN: not directly compatible anymore
|
||||||
-- highlight = { enable = true },
|
-- highlight = { enable = true },
|
||||||
autotag = { enable = false },
|
|
||||||
-- rainbow = {
|
-- rainbow = {
|
||||||
-- enable = true,
|
-- enable = true,
|
||||||
-- extended_mode = true,
|
-- extended_mode = true,
|
||||||
-- max_file_lines = nil,
|
-- max_file_lines = nil,
|
||||||
-- -- colors = {},
|
-- -- colors = {},
|
||||||
-- -- termcolors = {}
|
-- -- termcolors = {}
|
||||||
-- }
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user