feat: allow Navbuddy to automatically attach to the Lsp server

This commit is contained in:
raf 2023-07-19 23:06:29 +03:00
parent 863047e490
commit b9e152aa50
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -16,13 +16,9 @@ in {
vim.luaConfigRC.breadcrumbs = nvim.dag.entryAfter ["lspconfig"] ''
local navbuddy = require("nvim-navbuddy")
local navic = require("nvim-navic")
local actions = require("nvim-navbuddy.actions")
require("lspconfig").clangd.setup {
on_attach = function(client, bufnr)
navbuddy.attach(client, bufnr)
end
}
navbuddy.setup {
window = {
@ -141,7 +137,7 @@ in {
["g?"] = actions.help(), -- Open mappings help window
},
lsp = {
auto_attach = false, -- If set to true, you don't need to manually use attach function
auto_attach = true, -- If set to true, you don't need to manually use attach function
preference = nil, -- list of lsp server names in order of preference
},
source_buffer = {