mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-29 02:53:50 -03:00
chore: move navic to the lsp extras module
This commit is contained in:
parent
2ffef85e64
commit
0a689a44a0
3 changed files with 4 additions and 2 deletions
20
lua/plugins/lsp/extras/context.lua
Normal file
20
lua/plugins/lsp/extras/context.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
local M = {
|
||||
"SmiteshP/nvim-navic",
|
||||
}
|
||||
|
||||
M.config = function()
|
||||
require("nvim-navic").setup({
|
||||
icons = icons.kind,
|
||||
highlight = true,
|
||||
lsp = {
|
||||
auto_attach = true,
|
||||
},
|
||||
click = true,
|
||||
separator = " " .. icons.ui.ChevronRight .. " ",
|
||||
depth_limit = 0,
|
||||
depth_limit_indicator = "..",
|
||||
})
|
||||
vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue