From 9ed61f1035abee2403af36b6cd91b817e948488b Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 11 Dec 2024 17:35:03 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-11 17:35:03 --- .config/nvim/lua/plugins/harper.lua | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/plugins/harper.lua b/.config/nvim/lua/plugins/harper.lua index 697f0a9c..9cd54a83 100644 --- a/.config/nvim/lua/plugins/harper.lua +++ b/.config/nvim/lua/plugins/harper.lua @@ -21,7 +21,8 @@ local harperSettings = { terminating_conjunctions = true, }, } -return { +local enabled = false +local spec = { { "neovim/nvim-lspconfig", opts = { @@ -39,7 +40,17 @@ return { }, }, { - "williamboman/mason.nvim", - opts = { ensure_installed = { "harper-ls" } }, + "williamboman/mason-lspconfig.nvim", + opts = { ensure_installed = { "harper_ls" } }, }, } +if enabled then + return spec +else + return { + "williamboman/mason-lspconfig.nvim", + config = function() + vim.cmd("LspUninstall harper_ls") + end, + } +end