This commit is contained in:
Rachel Lambda Samuelsson 2024-03-14 15:03:28 +01:00
parent 8eb7008aeb
commit f6905d27e8

View File

@ -219,7 +219,7 @@ in rec {
require('nvim-treesitter.configs').setup({ require('nvim-treesitter.configs').setup({
highlight = { highlight = {
enable = true, enable = true,
disable = { "c" }, disable = { "c", "lua" },
additional_vim_regex_highlighting = {'org'}, additional_vim_regex_highlighting = {'org'},
}, },
}) })
@ -227,6 +227,37 @@ in rec {
require('lean').setup({ require('lean').setup({
mappings = true, 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', { vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args) callback = function(args)
@ -274,7 +305,6 @@ in rec {
set signcolumn=no set signcolumn=no
set linebreak set linebreak
let g:cornelis_use_global_binary = 1 let g:cornelis_use_global_binary = 1
let g:lightline = { 'colorscheme': 'gruvbox' }
set conceallevel=2 concealcursor=nc set conceallevel=2 concealcursor=nc
colorscheme gruvbox colorscheme gruvbox
hi Normal guibg=NONE ctermbg=NONE hi Normal guibg=NONE ctermbg=NONE
@ -335,8 +365,6 @@ in rec {
comment-nvim comment-nvim
vimtex vimtex
gruvbox-nvim gruvbox-nvim
lightline-vim
lightline-gruvbox-vim
tmux-nvim tmux-nvim
cornelis-vim cornelis-vim
nvim-lspconfig nvim-lspconfig
@ -351,6 +379,7 @@ in rec {
lean-nvim lean-nvim
bqn-vim bqn-vim
bqn-nvim bqn-nvim
lualine-nvim
]; ];
}; };