feat: Use updated lualine syntax

This commit is contained in:
uttarayan21
2024-11-22 12:46:42 +05:30
parent a0036cffd7
commit 6cf63c6e0f
2 changed files with 15 additions and 19 deletions

2
flake.lock generated
View File

@@ -1815,7 +1815,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-RZzpIKpIxRCokGZf10EdaiP5fTUDuFyZxSAKonCBJJ8=", "narHash": "sha256-2CxuQIKuMbth3Z5NG4gvUPa0EZPazSgwOdxbzbfqvwQ=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

@@ -74,24 +74,20 @@ in rec {
lualine = { lualine = {
enable = true; enable = true;
settings.sections = { settings.sections = {
lualine_c = [ lualine_c =
{ rawLua
name = /*
rawLua lua
/* */
lua ''
*/ function(bufnr)
'' local opts = { highlight = true }
function(bufnr) return require'nvim-navic'.get_location(opts)
local opts = { highlight = true } end,
return require'nvim-navic'.get_location(opts) cond = function()
end, return require'nvim-navic'.is_available()
cond = function() end
return require'nvim-navic'.is_available() '';
end
'';
}
];
}; };
}; };