treesitter and lsps
This commit is contained in:
parent
7a09394d5b
commit
bbf98cedf2
2 changed files with 22 additions and 1 deletions
16
plugins/mason-lspconfig.lua
Normal file
16
plugins/mason-lspconfig.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- use mason-lspconfig to configure LSP installations
|
||||
return {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
opts = {
|
||||
automatic_installation = true,
|
||||
ensure_installed = {
|
||||
"astro",
|
||||
"svelte",
|
||||
"tailwindcss",
|
||||
"rust_analyzer",
|
||||
"jsonls",
|
||||
"tsserver",
|
||||
"html"
|
||||
},
|
||||
},
|
||||
}
|
|
@ -3,7 +3,12 @@ return {
|
|||
opts = function(_, opts)
|
||||
-- add more things to the ensure_installed table protecting against community packs modifying it
|
||||
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
|
||||
-- "lua"
|
||||
"astro",
|
||||
"yaml",
|
||||
"svelte",
|
||||
"dockerfile",
|
||||
"json5",
|
||||
"markdown"
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue