mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 20:16:27 +00:00
Fix navic in lualine
This commit is contained in:
parent
4c65a9dfaa
commit
5bcd6af235
@ -48,6 +48,7 @@ function M.config_lualine(theme_name)
|
||||
|
||||
-- gps / navic
|
||||
local code_loc = {}
|
||||
|
||||
utils.try_require("nvim-gps", function(gps)
|
||||
gps.setup({
|
||||
icons = {
|
||||
@ -60,9 +61,22 @@ function M.config_lualine(theme_name)
|
||||
})
|
||||
code_loc = { gps.get_location, cond = gps.is_available }
|
||||
end)
|
||||
|
||||
utils.try_require("nvim-navic", function(navic)
|
||||
navic.setup()
|
||||
code_loc = { navic.get_location, cond = navic.is_available }
|
||||
navic.setup({
|
||||
icons = {
|
||||
Class = "(c)",
|
||||
Constant = "(Const)",
|
||||
Constructor = "cst",
|
||||
Function = "(f)",
|
||||
Method = "(m)",
|
||||
Package = "(p)",
|
||||
Property = "(pr)",
|
||||
Struct = "(s)",
|
||||
Variable = "(v)",
|
||||
},
|
||||
})
|
||||
code_loc = { "navic" }
|
||||
end)
|
||||
|
||||
local diagnostic_plugin = "nvim_diagnostic"
|
||||
|
Loading…
Reference in New Issue
Block a user