Does the lsp function from the example template follow default lspconfig #345
Answered
by
BirdeeHub
rafaeljacov
asked this question in
Q&A
-
|
If I set lsp = function(plugin)
vim.lsp.config(plugin.name, plugin.lsp or {})
vim.lsp.enable(plugin.name)
end,currently I did this just for safety: lsp = function(plugin)
if next(plugin.lsp) ~= nil then
vim.lsp.config(plugin.name, plugin.lsp)
end
vim.lsp.enable(plugin.name)
end, |
Beta Was this translation helpful? Give feedback.
Answered by
BirdeeHub
Sep 21, 2025
Replies: 1 comment
-
|
yes if you use the function form of vim.lsp.config it merges them in If you use the index form vim.lsp.config[lspname] it doesnt |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rafaeljacov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes if you use the function form of vim.lsp.config it merges them in
If you use the index form vim.lsp.config[lspname] it doesnt