AutoYADM commit: 2024-12-11 17:40:04
This commit is contained in:
parent
9ed61f1035
commit
619dd343d5
2 changed files with 6 additions and 7 deletions
|
@ -22,6 +22,10 @@ local harperSettings = {
|
|||
},
|
||||
}
|
||||
local enabled = false
|
||||
local har = ""
|
||||
if enabled then
|
||||
har = "harper_ls"
|
||||
end
|
||||
local spec = {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
|
@ -41,16 +45,13 @@ local spec = {
|
|||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
opts = { ensure_installed = { "harper_ls" } },
|
||||
opts = { ensure_installed = { har } },
|
||||
},
|
||||
}
|
||||
if enabled then
|
||||
return spec
|
||||
else
|
||||
return {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
config = function()
|
||||
vim.cmd("LspUninstall harper_ls")
|
||||
end,
|
||||
"neovim/nvim-lspconfig",
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue