Skip to content

Commit f85eae9

Browse files
lsp: use local clojure lsp server and prevent mason install
Not required once PR merged: mason-org/mason-registry#7896 Once the Mason Registry has been updated, the configuration will be commented and revert to the Mason install of Clojure LSP server Resolve #18
1 parent 093178a commit f85eae9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- snippets: fixed placeholder syntax without labels
1313
- practicalli: kitty style graph for neogit
1414
- update: changes from astronvim/template
15+
- lsp: use local clojure lsp server and prevent mason install
1516

1617

1718
# 2024-08-24 Refactor Clojure Which-key mappings

lua/plugins/user-practicalli.lua

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,25 @@ return {
163163
colorscheme = "everforest",
164164
},
165165
},
166+
167+
-- ------------------------------------------
168+
-- AstroNvim LSP Configuration
169+
-- INFO: Remove to use Mason install of Clojure LSP rather than local install
170+
-- INFO: Not required once PR merged: https://github.com/mason-org/mason-registry/pull/7896
171+
{
172+
"AstroNvim/astrolsp",
173+
---@type AstroLSPOpts
174+
opts = {
175+
servers = { "clojure_lsp" }, -- use locally installed Clojure LSP server
176+
},
177+
},
178+
{
179+
"williamboman/mason-lspconfig.nvim",
180+
opts = function(_, opts)
181+
-- Remove clojure_lsp from mason install (added by clojure pack)
182+
opts.ensure_installed = vim.tbl_filter(function(s) return s ~= "clojure_lsp" end, opts.ensure_installed)
183+
end,
184+
},
166185
-- ------------------------------------------
167186

168187
-- ------------------------------------------

0 commit comments

Comments
 (0)