From a7f1a8f8452d01740d1715aaa5e77fc191994a77 Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Thu, 14 Mar 2024 15:03:28 +0100 Subject: [PATCH] lualine --- home/rachel.nix | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/home/rachel.nix b/home/rachel.nix index 638a124..227b726 100644 --- a/home/rachel.nix +++ b/home/rachel.nix @@ -186,7 +186,7 @@ in require('nvim-treesitter.configs').setup({ highlight = { enable = true, - disable = { "c" }, + disable = { "c", "lua" }, additional_vim_regex_highlighting = {'org'}, }, }) @@ -194,6 +194,37 @@ in require('lean').setup({ mappings = true, }) + require('lualine').setup { + options = { + icons_enabled = true, + theme = 'gruvbox', + component_separators = { left = "", right = ""}, + section_separators = { left = "", right = ""}, + always_divide_middle = true, + globalstatus = false, + refresh = { + statusline = 1000, + tabline = 1000, + winbar = 1000, + } + }, + sections = { + lualine_a = {'mode'}, + lualine_b = { { 'diagnostics', always_visible = true } }, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'location'}, + lualine_y = {}, + lualine_z = {} + }, + } vim.api.nvim_create_autocmd('LspAttach', { callback = function(args) @@ -241,7 +272,6 @@ in set signcolumn=no set linebreak let g:cornelis_use_global_binary = 1 - let g:lightline = { 'colorscheme': 'gruvbox' } set conceallevel=2 concealcursor=nc colorscheme gruvbox hi Normal guibg=NONE ctermbg=NONE @@ -302,8 +332,6 @@ in comment-nvim vimtex gruvbox-nvim - lightline-vim - lightline-gruvbox-vim tmux-nvim cornelis-vim nvim-lspconfig @@ -318,6 +346,7 @@ in lean-nvim bqn-vim bqn-nvim + lualine-nvim ]; };