remove lsp dir

This commit is contained in:
2025-05-13 18:19:08 -05:00
parent f32ce9b67d
commit 3ef334190a
4 changed files with 19 additions and 34 deletions

View File

@@ -1,23 +1,22 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({ { import = "dkelly.plugins" }, { import = "dkelly.plugins.lsp" } }, {
checker = {
enabled = true,
notify = false,
},
change_detection = {
notify = false,
},
require("lazy").setup({ { import = "dkelly.plugins" } }, {
checker = {
enabled = true,
notify = false,
},
change_detection = {
notify = false,
},
})

View File

@@ -9,13 +9,6 @@ return {
config = function()
-- import lspconfig plugin
local lspconfig = require("lspconfig")
lspconfig.util.default_config = vim.tbl_extend("force", lspconfig.util.default_config, {
capabilities = vim.tbl_deep_extend(
"force",
vim.lsp.protocol.make_client_capabilities(),
require("lsp-file-operations").default_capabilities()
),
})
lspconfig.dartls.setup({})
-- import cmp-nvim-lsp plugin
local cmp_nvim_lsp = require("cmp_nvim_lsp")
@@ -117,11 +110,6 @@ return {
end
require("mason-lspconfig").setup({
ensure_installed = {
"lua_ls",
"rust_analyzer",
"gopls",
},
handlers = {
function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup({
@@ -166,7 +154,7 @@ return {
["gopls"] = function()
lspconfig.gopls.setup({
on_attach = on_attach,
capabilities = capabilities,
capabilities = cmp_nvim_lsp.default_capabilities(),
cmd = { "gopls" },
filetypes = { "go", "gomod", "gowork", "gotmpl" },
root_dir = lspconfig.util.root_pattern("go.work", "go.mod", ".git"),

View File

@@ -10,8 +10,6 @@ return {
-- import mason
local mason = require("mason")
-- import mason-lspconfig
local mason_tool_installer = require("mason-tool-installer")
-- enable mason and configure icons
mason.setup({