mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 04:09:48 +01: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"] ''
|
vim.luaConfigRC.breadcrumbs = nvim.dag.entryAfter ["lspconfig"] ''
|
||||||
local navbuddy = require("nvim-navbuddy")
|
local navbuddy = require("nvim-navbuddy")
|
||||||
|
local navic = require("nvim-navic")
|
||||||
local actions = require("nvim-navbuddy.actions")
|
local actions = require("nvim-navbuddy.actions")
|
||||||
|
|
||||||
require("lspconfig").clangd.setup {
|
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
navbuddy.attach(client, bufnr)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
navbuddy.setup {
|
navbuddy.setup {
|
||||||
window = {
|
window = {
|
||||||
|
@ -141,7 +137,7 @@ in {
|
||||||
["g?"] = actions.help(), -- Open mappings help window
|
["g?"] = actions.help(), -- Open mappings help window
|
||||||
},
|
},
|
||||||
lsp = {
|
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
|
preference = nil, -- list of lsp server names in order of preference
|
||||||
},
|
},
|
||||||
source_buffer = {
|
source_buffer = {
|
||||||
|
|
Loading…
Reference in a new issue