mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 01:37:33 +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
|
-- gps / navic
|
||||||
local code_loc = {}
|
local code_loc = {}
|
||||||
|
|
||||||
utils.try_require("nvim-gps", function(gps)
|
utils.try_require("nvim-gps", function(gps)
|
||||||
gps.setup({
|
gps.setup({
|
||||||
icons = {
|
icons = {
|
||||||
@ -60,9 +61,22 @@ function M.config_lualine(theme_name)
|
|||||||
})
|
})
|
||||||
code_loc = { gps.get_location, cond = gps.is_available }
|
code_loc = { gps.get_location, cond = gps.is_available }
|
||||||
end)
|
end)
|
||||||
|
|
||||||
utils.try_require("nvim-navic", function(navic)
|
utils.try_require("nvim-navic", function(navic)
|
||||||
navic.setup()
|
navic.setup({
|
||||||
code_loc = { navic.get_location, cond = navic.is_available }
|
icons = {
|
||||||
|
Class = "(c)",
|
||||||
|
Constant = "(Const)",
|
||||||
|
Constructor = "cst",
|
||||||
|
Function = "(f)",
|
||||||
|
Method = "(m)",
|
||||||
|
Package = "(p)",
|
||||||
|
Property = "(pr)",
|
||||||
|
Struct = "(s)",
|
||||||
|
Variable = "(v)",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
code_loc = { "navic" }
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local diagnostic_plugin = "nvim_diagnostic"
|
local diagnostic_plugin = "nvim_diagnostic"
|
||||||
|
Loading…
Reference in New Issue
Block a user