clean readme | rm outdated info & update img links
This commit is contained in:
parent
dd260cb4d5
commit
5ee4f93309
5 changed files with 20 additions and 22 deletions
|
|
@ -35,6 +35,7 @@ M.plugins = {
|
|||
},
|
||||
statusline = {
|
||||
separator_style = "default", -- default/round/block
|
||||
config = "%!v:lua.require'ui.statusline'.run()",
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,3 @@ autocmd('BufEnter', {
|
|||
pattern = '*',
|
||||
command = 'set fo-=c fo-=r fo-=o'
|
||||
})
|
||||
|
||||
-- load statusline
|
||||
vim.opt.statusline = "%!v:lua.require'ui.statusline'.run()"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,11 @@ g.toggle_theme_icon = " "
|
|||
g.transparency = config.ui.transparency
|
||||
|
||||
opt.confirm = true
|
||||
|
||||
opt.laststatus = 3 -- global statusline
|
||||
opt.statusline = config.plugins.options.statusline.config
|
||||
opt.showmode = false
|
||||
|
||||
opt.title = true
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.cmdheight = 1
|
||||
|
|
|
|||
|
|
@ -152,14 +152,14 @@ M.LSP_status = function()
|
|||
end
|
||||
|
||||
M.cwd = function()
|
||||
local left_sep = "%#ST_EmptySpace2#" .. sep_l .. "%#St_cwd_sep#" .. sep_l
|
||||
local dir_icon = "%#St_cwd_icon#" .. " "
|
||||
local left_sep = "%#St_cwd_sep#" .. sep_l
|
||||
local dir_icon = "%#St_cwd_icon#" .. " "
|
||||
local dir_name = "%#St_cwd_text#" .. " " .. fn.fnamemodify(fn.getcwd(), ":t") .. " "
|
||||
return (vim.o.columns > 120 and left_sep .. dir_icon .. dir_name) or ""
|
||||
end
|
||||
|
||||
M.cursor_position = function()
|
||||
local left_sep = "%#ST_EmptySpace#" .. sep_l .. "%#St_pos_sep#" .. sep_l
|
||||
local left_sep = "%#St_pos_sep#" .. sep_l
|
||||
local icon = "%#St_pos_icon#" .. " "
|
||||
|
||||
local current_line = fn.line "."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue