updated the lsp portion

This commit is contained in:
2026-01-20 12:16:15 -07:00
parent 3b41bd1552
commit 9c7c68c8f4
4 changed files with 5 additions and 44 deletions

View File

@@ -139,9 +139,9 @@ return {
"jay-babu/mason-nvim-dap.nvim",
opts = {
ensure_installed = {
"go",
"python",
"node2",
"delve",
"js"
},
},
},

View File

@@ -1,40 +0,0 @@
return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
tsserver = {
root_dir = function(fname)
return require("lspconfig.util").root_pattern(
"pnpm-workspace.yaml",
"nx.json",
"turbo.json",
"package.json",
".git"
)(fname)
end,
},
gopls = {
root_dir = function(fname)
return require("lspconfig.util").root_pattern(
"go.work",
"go.mod",
".git"
)(fname)
end,
},
pyright = {
root_dir = function(fname)
return require("lspconfig.util").root_pattern(
"pyproject.toml",
"setup.py",
".git"
)(fname)
end,
},
},
},
},
}

View File

@@ -26,6 +26,7 @@ return {
"gopls", -- Go
"lua-language-server", -- Lua
"typescript-language-server", -- TypeScript/JavaScript
"js-debug-adapter", -- JS
"html-lsp", -- HTML
"css-lsp", -- CSS
"json-lsp", -- JSON