feat: add nvim-navic attach function

This commit is contained in:
NotAShelf 2023-02-27 16:48:29 +03:00
commit 333b603658
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1

View file

@ -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
}
'';
}; };
} }