added navic and winbar

This commit is contained in:
Sven Vogel 2024-04-13 17:00:38 +02:00
parent f99d06e217
commit 3d8a4f5b73
2 changed files with 32 additions and 1 deletions

View File

@ -35,7 +35,13 @@ return {
-- and will be called for each installed server that doesn't have
-- a dedicated handler.
function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup({})
require("lspconfig")[server_name].setup({
on_attach = function(client, bufnr)
if client.server_capabilities["documentSymbolProvider"] then
require("nvim-navic").attach(client, bufnr)
end
end,
})
end,
}

25
lua/plugins/navic.lua Normal file
View File

@ -0,0 +1,25 @@
return {
{
"SmiteshP/nvim-navic",
dependencies = {
"neovim/nvim-lspconfig",
},
opts = {
depth_limit_indicator = "...",
depth_limit = 8,
click = true,
},
},
{
"utilyre/barbecue.nvim",
name = "barbecue",
version = "*",
dependencies = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons",
},
opts = {
attach_navic = false,
},
},
}