From ed18068d8364bb5886dc88438e980bbc3f18811d Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 8 Apr 2022 00:12:08 +0430 Subject: truecolor, fixed ctrlp being annoying, some sh goodies --- .vimrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 040ed1d..83f4046 100644 --- a/.vimrc +++ b/.vimrc @@ -252,6 +252,13 @@ filetype plugin indent on " let g:vim_markdown_math = 1 " let g:vim_markdown_strikethrough = 1 +" enable 24-bit color +if exists('+termguicolors') + " set Vim-specific sequences for RGB colors + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + " set termguicolors +endif "jellybeans silent! colo jellybeans set background=dark @@ -1057,7 +1064,7 @@ let g:ctrlp_show_hidden = 1 let g:ctrlp_root_markers = ['.root'] if executable('rg') set grepprg=rg\ --color=never - let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""' + let g:ctrlp_user_command = 'rg %s --files --hidden --color=never --glob "!node_modules"' let g:ctrlp_use_caching = 0 endif @@ -1452,9 +1459,11 @@ augroup ALELUA autocmd FileType lua let b:ale_linters = {'lua': ['luacheck']} autocmd FileType lua let b:ale_fixers = {'lua': ['lua-format']} augroup END -let g:ale_sh_shfmt_options = "-l -w" +let b:ale_sh_shfmt_options = "-l -w" +let b:ale_sh_shellcheck_options = '-x' augroup ALESH autocmd! + autocmd FileType sh let b:ale_linters = {'sh': ['shellcheck']} autocmd FileType sh let b:ale_fixers = {'sh': ['shfmt']} augroup END -- cgit v1.2.3