added navic and winbar
This commit is contained in:
parent
f99d06e217
commit
3d8a4f5b73
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue