updated the lsp portion
This commit is contained in:
@@ -139,9 +139,9 @@ return {
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"go",
|
||||
"python",
|
||||
"node2",
|
||||
"delve",
|
||||
"js"
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user