This commit is contained in:
Nachuan Tang
2023-03-09 14:41:39 -05:00
parent a88236df1c
commit 71e105e738
2 changed files with 34 additions and 3 deletions
+20 -3
View File
@@ -34,7 +34,7 @@
Plug 'rhysd/conflict-marker.vim'
Plug 'jiangmiao/auto-pairs'
Plug 'mg979/vim-visual-multi'
" Plug 'mg979/vim-visual-multi'
Plug 'RRethy/vim-illuminate', Cond(!exists('g:vscode'))
"Plug 'easymotion/vim-easymotion'
@@ -161,17 +161,34 @@ endfunction
let g:vista_default_executive = 'coc'
nnoremap <silent> <leader>v :Vista!!<CR>
let g:vista_cursor_delay = 0
let g:vista_echo_cursor = 0
let g:vista_echo_cursor_strategy = 'floating_win'
let g:vista_close_on_jump = 0
let g:vista_floating_delay = 0
let g:vista_ignore_kinds = ['Variable', 'Field', 'EnumMember']
let g:vista_ignore_kinds = ['Variable', 'Field', 'EnumMember',
\ 'String', 'Object', 'Array', 'Constant', 'Package', 'Boolean', 'Number'
\ ]
let g:vista_floating_border = 'rounded'
let g:vista_disable_statusline = 1
" let g:vista_keep_fzf_colors = 1
let g:vista_update_on_text_changed_delay = 0
let g:vista_update_on_text_changed = 1
let g:vista#renderer#enable_kind = 1
let g:vista#renderer#enable_icon = 0
let g:vista#renderer#enable_icon = 1
function VistaHelper()
if winnr('$') == 1 && bufname() == "__vista__"
let bufs = map(filter(copy(getbufinfo()), 'v:val.listed'), 'v:val.bufnr')
if len(bufs) > 1
execute("normal! :bw\<CR>")
else
execute "normal! :q!\<CR>"
endif
endif
endfunction
" close vista when it is the last window
" autocmd BufEnter * if winnr('$') == 1 && bufname() == "__vista__" | execute "normal! :q!\<CR>" | endif
" autocmd BufEnter * call VistaHelper()
endif
+14
View File
@@ -1,6 +1,10 @@
local vim_version = vim.version()
local vim_version_minor = vim_version['minor']
show_icon = false
if vim.fn.HasPlug('nvim-web-devicons') then
show_icon = true
end
-- debug
-- print(vim.inspect(version))
--
@@ -151,6 +155,7 @@ local function lualine_config()
end
require('lualine').setup {
options = {
icons_enabled = show_icon,
theme = 'auto', -- lualine theme
-- theme = 'ayu', -- lualine theme
always_divide_middle = false, -- When set to true, left sections i.e. 'a','b' and 'c'
@@ -234,6 +239,15 @@ local function nvim_tree_config()
},
renderer = {
group_empty = true,
icons = {
show = {
file = show_icon,
folder = show_icon,
folder_arrow = show_icon,
git = show_icon,
modified = show_icon,
}
}
},
filters = {
dotfiles = false,