use on_init to check golangci_lint_ls version

also ensure language servers are compatible with navbuddy before
registering them
This commit is contained in:
2025-07-14 09:10:20 +01:00
parent 2625fc03c2
commit b854338b20
3 changed files with 36 additions and 35 deletions

View File

@ -1,5 +1,7 @@
return function(client, bufnr)
require('nvim-navbuddy').attach(client, bufnr)
if client.server_capabilities.documentSymbolProvider then
require('nvim-navbuddy').attach(client, bufnr)
end
local nmap = function(keys, func, desc)
if desc then