From 4bdfa8f7bb7bae1285656d07a79629f067c32662 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sun, 22 Dec 2024 15:50:55 +0100 Subject: [PATCH] nvim: lualine fancy plugin --- home/terminal/nixvim/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/home/terminal/nixvim/default.nix b/home/terminal/nixvim/default.nix index 126f3c8..7dda032 100644 --- a/home/terminal/nixvim/default.nix +++ b/home/terminal/nixvim/default.nix @@ -12,6 +12,16 @@ pkgs.vimPlugins.polyglot pkgs.vimPlugins.sonokai pkgs.vimPlugins.vim-better-whitespace + (pkgs.vimUtils.buildVimPlugin { + pname = "lualine-so-fancy.nvim"; + version = "HEAD"; + src = pkgs.fetchFromGitHub { + owner = "meuter"; + repo = "lualine-so-fancy.nvim"; + rev = "45197358e5274d301d98638bf079f3437d6eacf8"; + sha256 = "sha256-j6XI4cw1ouYEvSiKdam8RAqxefDqeLwe37Qir/UO+8g="; + }; + }) ]; globals = { mapleader = ","; @@ -84,6 +94,14 @@ lsp-lines.enable = true; # Display LSP hints in lines lsp-signature.enable = true; # Show function signature when typing lualine.enable = true; # Status line + lualine.settings.sections = { + lualine_a = [ "fancy_mode" ]; + lualine_b = [ "fancy_branch" "fancy_diff" ]; + lualine_c = [ "fancy_cwd" ]; + lualine_x = [ "fancy_diagnostics" "fancy_searchcount" "fancy_location" ]; + lualine_y = [ "fancy_filetype" ]; + lualine_z = [ "fancy_lsp_servers" ]; + }; render-markdown.enable = true; treesitter.enable = true; web-devicons.enable = true;