update lsp config

This commit is contained in:
Alexander Navarro 2025-11-12 13:45:07 -03:00
parent 47deec4656
commit d0ffade8ce
3 changed files with 12 additions and 22 deletions

View file

@ -142,6 +142,8 @@ vim.filetype.add({
pattern = {
-- INFO: Match filenames like - ".env.example", ".env.local" and so on
["%.env%.[%w_.-]+"] = "dotenv",
["compose.*%.ya?ml"] = "yaml.docker-compose",
["docker-compose.*%.ya?ml"] = "yaml.docker-compose",
[".*%.blade%.php"] = "blade",
[".*%.hurl.*"] = "hurl",
[".*/hypr/.*%.conf"] = "hyprlang",
@ -160,22 +162,6 @@ vim.lsp.config("rust-analyzer", {
}
})
vim.lsp.enable({
"bashls",
"biome",
"fish_lsp",
"gleam",
"gopls",
"hyprls",
"intelephense",
"jsonls",
"kotlin_lsp",
"lua_ls",
"nushell",
"pyright",
"ruff",
-- "rust_analyzer", -- managed by rustacean.nvim
})
vim.lsp.inlay_hint.enable(true)

View file

@ -1,10 +1,13 @@
return {
'neovim/nvim-lspconfig',
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
{
"mason-org/mason.nvim",
opts = {}
"mason-org/mason-lspconfig.nvim",
opts = {},
dependencies = {
{ "mason-org/mason.nvim", opts = {} },
"neovim/nvim-lspconfig",
},
},
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
{
"ckolkey/ts-node-action",
dependencies = { "nvim-treesitter" },