From 6cf63c6e0f5f5318aba0a9391bd6f41c161e546c Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Fri, 22 Nov 2024 12:46:42 +0530 Subject: [PATCH] feat: Use updated lualine syntax --- flake.lock | 2 +- neovim/nvim.nix | 32 ++++++++++++++------------------ 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/flake.lock b/flake.lock index d5b944da..c268a9bc 100644 --- a/flake.lock +++ b/flake.lock @@ -1815,7 +1815,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-RZzpIKpIxRCokGZf10EdaiP5fTUDuFyZxSAKonCBJJ8=", + "narHash": "sha256-2CxuQIKuMbth3Z5NG4gvUPa0EZPazSgwOdxbzbfqvwQ=", "path": "./neovim", "type": "path" }, diff --git a/neovim/nvim.nix b/neovim/nvim.nix index 60a3b6be..d9b850fe 100644 --- a/neovim/nvim.nix +++ b/neovim/nvim.nix @@ -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 + ''; }; };