nvim: fck lualine
This commit is contained in:
parent
a23435c240
commit
6f9f76c2d6
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
local M = {
|
||||
'hoob3rt/lualine.nvim',
|
||||
enabled = false,
|
||||
event = 'VeryLazy',
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons'
|
||||
|
|
Loading…
Add table
Reference in a new issue