updated golang and node lsp

This commit is contained in:
Walter Jenkins 2025-11-22 13:19:58 -06:00
parent 80b5d665fe
commit 3708c5608e
4 changed files with 103 additions and 41 deletions

View file

@ -0,0 +1,54 @@
-- lua/plugins/mason-lspconfig.lua
return {
-- "williamboman/mason-lspconfig.nvim",
-- dependencies = {
-- "williamboman/mason.nvim",
-- "neovim/nvim-lspconfig",
-- },
-- config = function()
-- local mason_lspconfig = require("mason-lspconfig")
-- local lspconfig = require("lspconfig")
--
-- mason_lspconfig.setup({
-- ensure_installed = {
-- "gopls",
-- "vtsls", -- use vtsls
-- "astro",
-- "templ",
-- "lua_ls",
-- "jsonls",
-- "tailwindcss",
-- },
-- automatic_installation = true,
-- })
--
-- mason_lspconfig.setup_handlers({
-- -- Default handler for most servers
-- function(server_name)
-- -- 🚫 dont start ts_ls at all
-- if server_name == "ts_ls" then
-- return
-- end
-- lspconfig[server_name].setup({})
-- end,
--
-- -- Optional: vtsls-specific config
-- ["vtsls"] = function()
-- lspconfig.vtsls.setup({
-- settings = {
-- vtsls = {
-- autoUseWorkspaceTsdk = true,
-- },
-- typescript = {
-- tsserver = {
-- maxTsServerMemory = 4096,
-- },
-- },
-- },
-- })
-- end,
-- })
-- end,
}