feat: status line and fix fzf binding
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
lua require('config.init')
|
lua require('config.init')
|
||||||
|
lua require('status-line')
|
||||||
|
|
||||||
" vim.fn.stdpath("data")
|
" vim.fn.stdpath("data")
|
||||||
"lua require('plugins')
|
"lua require('plugins')
|
||||||
@@ -28,7 +29,7 @@ call matchadd('ColorColumn', '\%81v', 100)
|
|||||||
" Find files and tab autocomplete
|
" Find files and tab autocomplete
|
||||||
set path+=**
|
set path+=**
|
||||||
set wildmenu
|
set wildmenu
|
||||||
nnoremap <leader>fi :find<Space>
|
"nnoremap <leader>fi :find<Space>
|
||||||
|
|
||||||
autocmd TermOpen * setlocal nonumber
|
autocmd TermOpen * setlocal nonumber
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ local function statusline()
|
|||||||
local align_right = "%="
|
local align_right = "%="
|
||||||
local fileencoding = " %{&fileencoding?&fileencoding:&encoding}"
|
local fileencoding = " %{&fileencoding?&fileencoding:&encoding}"
|
||||||
local fileformat = "[%{&fileformat}]"
|
local fileformat = "[%{&fileformat}]"
|
||||||
local percentage = " %p%%"
|
|
||||||
local linecol = "%l/%L:%c"
|
local linecol = "%l/%L:%c"
|
||||||
|
local percentage = "|%p%%"
|
||||||
|
|
||||||
if branch then
|
if branch then
|
||||||
return string.format(
|
return string.format(
|
||||||
@@ -31,7 +31,7 @@ local function statusline()
|
|||||||
modified,
|
modified,
|
||||||
align_right,
|
align_right,
|
||||||
fileencoding,
|
fileencoding,
|
||||||
filetype,
|
-- filetype,
|
||||||
fileformat,
|
fileformat,
|
||||||
linecol,
|
linecol,
|
||||||
percentage
|
percentage
|
||||||
@@ -44,7 +44,7 @@ local function statusline()
|
|||||||
modified,
|
modified,
|
||||||
align_right,
|
align_right,
|
||||||
fileencoding,
|
fileencoding,
|
||||||
filetype,
|
-- filetype,
|
||||||
fileformat,
|
fileformat,
|
||||||
linecol,
|
linecol,
|
||||||
percentage
|
percentage
|
||||||
Reference in New Issue
Block a user