mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
feat: allow Navbuddy to automatically attach to the Lsp server
This commit is contained in:
parent
863047e490
commit
b9e152aa50
1 changed files with 2 additions and 6 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue