1
0
Fork 0

nvim: fck lualine

This commit is contained in:
Vladimír Dudr 2023-02-03 14:15:36 +01:00
parent a23435c240
commit 6f9f76c2d6
2 changed files with 16 additions and 0 deletions

View file

@ -44,6 +44,21 @@ function M.setup()
vim.o.grepprg = 'rg --vimgrep --no-ignore --smart-case $*'
vim.o.grepformat = '%f:%l:%c:%m'
vim.o.statusline =
'%{fnamemodify(getcwd(),":t")} ' -- basename of cwd
.. '%{get(b:,"gitsigns_head","")}' -- branch
.. '%<%f [%M%R%W]' -- filename and modification flags
.. '%=' -- rest is right
.. '%y ' -- filetype
.. '%-7.(%3.l:%-3.(%c%V%)%) %P' -- ruler
vim.api.nvim_create_autocmd('FileType', {
pattern = 'neo-tree',
callback = function ()
vim.wo.statusline = '%{getcwd()}'
end
})
end
return M

View file

@ -1,5 +1,6 @@
local M = {
'hoob3rt/lualine.nvim',
enabled = false,
event = 'VeryLazy',
dependencies = {
'nvim-tree/nvim-web-devicons'