dotfiles

Author: Kyle Fuller <kyle@fuller.li> 2026-06-06 15:55:00 +0100 +0100
Committer: Kyle Fuller <kyle@fuller.li> 2026-06-06 15:55:00 +0100 +0100
Commit: 1593a8c5ad9c961d3bd096c455a0fdc719f5e33d
Parent: c5f40a6885a26b9e95c1f619c5dbace2aeaa92db


feat(vim): use lualine
diff --git a/.config/home-manager/home.nix b/.config/home-manager/home.nix
index 0f1cfd5b63e94b73b3f2d319b9c1ace30cdab8e1..c1bda0075f01664398085ab8789b88febc40d8e2 100644
--- a/.config/home-manager/home.nix
+++ b/.config/home-manager/home.nix
@@ -127,8 +127,11 @@     extraLuaConfig = ''
       require 'kyle'
     '';
     plugins = with pkgs.vimPlugins; [
-      # theme
+      # layout
+      ## theme
       jellybeans-vim
+      ## statusline
+      lualine-nvim
 
       vim-sensible
       plenary-nvim
diff --git a/.config/nvim/lua/kyle/init.lua b/.config/nvim/lua/kyle/init.lua
index c036b579f7282a2bea24d74a81f6d57d73e67579..d34546ce7c435ee233244110e5d6a9e4abb7ff2d 100644
--- a/.config/nvim/lua/kyle/init.lua
+++ b/.config/nvim/lua/kyle/init.lua
@@ -11,3 +11,22 @@       }
     }
   }
 }
+
+-- statusline
+vim.o.showmode = false;
+require('lualine').setup {
+  options = {
+    theme = 'jellybeans',
+    component_separators = '',
+    section_separators = { left = '', right = '' },
+  },
+  sections = {
+    lualine_a = {
+      -- Show abbreviated mode
+      { 'mode', fmt = function(str) return str:sub(1,1) end }
+    },
+    lualine_b = { 'filename' },
+    lualine_c = { 'diagnostics' },
+    lualine_x = {},
+  }
+}
diff --git a/.vim/vimrc b/.vim/vimrc
index 2dbfdf8836c4c15add6d692dc74a0f0d9111f209..e0e1e478ce9f7f775714bc3733683f296b70cb25 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -50,12 +50,6 @@ nmap <leader>l :set list!<CR>
 set listchars=tab:▸\ ,trail:▝
 set list
 
-" Status Bar
-set laststatus=2 " Always show status bar
-" Highlight the status bar when in insert mode
-au InsertEnter * hi StatusLine ctermfg=235 ctermbg=10
-au InsertLeave * hi StatusLine ctermfg=15 ctermbg=240
-
 " Search
 set hlsearch " Highlight all search matches
 set incsearch " Highlight matches as you type