Configured mason for auto-installation (currently does not work)
- added dockerfile treesitter
This commit is contained in:
@@ -289,7 +289,8 @@ function M.nvim_treesitter_new()
|
|||||||
"vim",
|
"vim",
|
||||||
"yaml",
|
"yaml",
|
||||||
"toml",
|
"toml",
|
||||||
"php",
|
"php",
|
||||||
|
"dockerfile",
|
||||||
}
|
}
|
||||||
local run_langs = vim.tbl_extend("force", install_langs, {
|
local run_langs = vim.tbl_extend("force", install_langs, {
|
||||||
"htmlangular",
|
"htmlangular",
|
||||||
|
|||||||
+29
-19
@@ -138,7 +138,35 @@ cmp.setup({
|
|||||||
mapping = cmp.mapping.preset.insert(mapping),
|
mapping = cmp.mapping.preset.insert(mapping),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local lsps = {
|
||||||
|
"bashls",
|
||||||
|
"clangd",
|
||||||
|
"cssls",
|
||||||
|
"gopls",
|
||||||
|
"html",
|
||||||
|
--"htmx",
|
||||||
|
"jsonls",
|
||||||
|
"lua_ls",
|
||||||
|
"pyright",
|
||||||
|
"svelte",
|
||||||
|
"tailwindcss",
|
||||||
|
"taplo",
|
||||||
|
"templ",
|
||||||
|
"ts_ls",
|
||||||
|
"zls",
|
||||||
|
"csharp_ls",
|
||||||
|
"intelephense",
|
||||||
|
"php-cs-fixer",
|
||||||
|
}
|
||||||
|
|
||||||
|
local local_lsp_configs = {
|
||||||
|
"angular-language-server",
|
||||||
|
}
|
||||||
|
|
||||||
require("mason").setup({
|
require("mason").setup({
|
||||||
|
ensure_installed = lsps,
|
||||||
|
automatic_installation = true,
|
||||||
|
automatic_enable = false,
|
||||||
registries = {
|
registries = {
|
||||||
"github:mason-org/mason-registry",
|
"github:mason-org/mason-registry",
|
||||||
"github:Crashdummyy/mason-registry",
|
"github:Crashdummyy/mason-registry",
|
||||||
@@ -160,22 +188,4 @@ vim.lsp.config("html", {
|
|||||||
filetypes = html_filetypes,
|
filetypes = html_filetypes,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.enable({
|
vim.lsp.enable(vim.tbl_extend("force", lsps, local_lsp_configs))
|
||||||
"angular-language-server",
|
|
||||||
"bashls",
|
|
||||||
"clangd",
|
|
||||||
"cssls",
|
|
||||||
"gopls",
|
|
||||||
"html",
|
|
||||||
--"htmx",
|
|
||||||
"jsonls",
|
|
||||||
"lua_ls",
|
|
||||||
"pyright",
|
|
||||||
"svelte",
|
|
||||||
"tailwindcss",
|
|
||||||
"taplo",
|
|
||||||
"templ",
|
|
||||||
"ts_ls",
|
|
||||||
"zls",
|
|
||||||
"csharp_ls",
|
|
||||||
})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user