feat: Use updated lualine syntax
This commit is contained in:
2
flake.lock
generated
2
flake.lock
generated
@@ -1815,7 +1815,7 @@
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-RZzpIKpIxRCokGZf10EdaiP5fTUDuFyZxSAKonCBJJ8=",
|
||||
"narHash": "sha256-2CxuQIKuMbth3Z5NG4gvUPa0EZPazSgwOdxbzbfqvwQ=",
|
||||
"path": "./neovim",
|
||||
"type": "path"
|
||||
},
|
||||
|
||||
@@ -74,24 +74,20 @@ in rec {
|
||||
lualine = {
|
||||
enable = true;
|
||||
settings.sections = {
|
||||
lualine_c = [
|
||||
{
|
||||
name =
|
||||
rawLua
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
function(bufnr)
|
||||
local opts = { highlight = true }
|
||||
return require'nvim-navic'.get_location(opts)
|
||||
end,
|
||||
cond = function()
|
||||
return require'nvim-navic'.is_available()
|
||||
end
|
||||
'';
|
||||
}
|
||||
];
|
||||
lualine_c =
|
||||
rawLua
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
function(bufnr)
|
||||
local opts = { highlight = true }
|
||||
return require'nvim-navic'.get_location(opts)
|
||||
end,
|
||||
cond = function()
|
||||
return require'nvim-navic'.is_available()
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user