mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
feat: add nvim-navic attach function
This commit is contained in:
parent
7aec23513c
commit
333b603658
1 changed files with 12 additions and 0 deletions
|
@ -25,5 +25,17 @@ in {
|
||||||
require("barbecue").setup()
|
require("barbecue").setup()
|
||||||
end,
|
end,
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
vim.luaConfigRC.nvim-navic = nvim.dag.entryAnywhere ''
|
||||||
|
|
||||||
|
local navic = require("nvim-navic")
|
||||||
|
|
||||||
|
require("lspconfig").clangd.setup {
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
navic.attach(client, bufnr)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue