Update lsp.lua

This commit is contained in:
Juanito 2025-09-18 15:20:56 -03:00 committed by GitHub
parent b27e3459ec
commit ae8377baac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 4 deletions

View File

@ -218,9 +218,9 @@ return {
ansiblels = {}, ansiblels = {},
bashls = {}, bashls = {},
gh_actions_ls = {}, gh_actions_ls = {},
-- jinja_lsp = {}, jinja_lsp = {},
markdown_oxide = {}, markdown_oxide = {},
-- terraform = {}, terraformls = {},
yamlls = {}, yamlls = {},
gopls = {}, gopls = {},
pyright = {}, pyright = {},
@ -257,7 +257,6 @@ return {
-- for you, so that they are available from within Neovim. -- for you, so that they are available from within Neovim.
local ensure_installed = vim.tbl_keys(servers or {}) local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, { vim.list_extend(ensure_installed, {
-- 'stylua', -- Used to format Lua code
'rustfmt', -- Rust formatter 'rustfmt', -- Rust formatter
'prettier', -- JS/MD formatter 'prettier', -- JS/MD formatter
'black', -- Python formatter 'black', -- Python formatter
@ -265,7 +264,17 @@ return {
'shellcheck', 'shellcheck',
'markdownlint', 'markdownlint',
}) })
require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-tool-installer').setup {
ensure_installed = ensure_installed,
auto_update = false,
}
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.terraform_fmt,
},
})
require('mason-lspconfig').setup { require('mason-lspconfig').setup {
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer) ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)