|
|
@ -52,8 +52,13 @@ endif |
|
|
|
call plug#begin() |
|
|
|
|
|
|
|
Plug 'catppuccin/vim' |
|
|
|
Plug 'lifepillar/vim-solarized8' |
|
|
|
Plug 'morhetz/gruvbox' |
|
|
|
Plug 'junegunn/seoul256.vim' |
|
|
|
|
|
|
|
Plug 'junegunn/fzf' |
|
|
|
Plug 'junegunn/fzf.vim' |
|
|
|
|
|
|
|
Plug 'prabirshrestha/vim-lsp' |
|
|
|
Plug 'mattn/vim-lsp-settings' |
|
|
|
Plug 'prabirshrestha/asyncomplete.vim' |
|
|
@ -174,13 +179,32 @@ endif |
|
|
|
|
|
|
|
" Goyo and themes |
|
|
|
|
|
|
|
function Catppuccin() |
|
|
|
function! Catppuccin() |
|
|
|
set background=dark |
|
|
|
colorscheme catppuccin_frappe |
|
|
|
let g:airline_theme = "catppuccin_frappe" |
|
|
|
endfu |
|
|
|
|
|
|
|
function! SolarizedLight() |
|
|
|
colorscheme solarized8 |
|
|
|
set background=light |
|
|
|
let g:airline_theme = "solarized" |
|
|
|
endfu |
|
|
|
|
|
|
|
function! SolarizedDark() |
|
|
|
colorscheme solarized8 |
|
|
|
set background=dark |
|
|
|
colorscheme catppuccin_mocha |
|
|
|
let g:airline_theme = "catppuccin_mocha" |
|
|
|
let g:airline_theme = "solarized" |
|
|
|
let g:airline_solarized_bg='dark' |
|
|
|
endfu |
|
|
|
|
|
|
|
function Seoul256() |
|
|
|
function! Gruvbox() |
|
|
|
set background=dark |
|
|
|
colorscheme gruvbox |
|
|
|
let g:airline_theme = "gruvbox" |
|
|
|
endfu |
|
|
|
|
|
|
|
function! Seoul256() |
|
|
|
let g:seoul256_background = 234 |
|
|
|
let g:airline_theme = "seoul256" |
|
|
|
set background=dark |
|
|
@ -189,9 +213,9 @@ endfu |
|
|
|
|
|
|
|
if has('termguicolors') |
|
|
|
set termguicolors |
|
|
|
call Catppuccin() |
|
|
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" |
|
|
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" |
|
|
|
call Gruvbox() |
|
|
|
else |
|
|
|
call Seoul256() |
|
|
|
endif |
|
|
@ -206,6 +230,9 @@ let g:airline#extensions#tabline#enabled = 1 |
|
|
|
nnoremap <leader>z :Goyo <CR> |
|
|
|
nnoremap <leader>gs :Git <CR> |
|
|
|
|
|
|
|
nnoremap <leader>ff :Files<CR> |
|
|
|
nnoremap <C-p> :GFiles<CR> |
|
|
|
|
|
|
|
" lsp |
|
|
|
|
|
|
|
set cot+=preview |
|
|
@ -233,6 +260,9 @@ if exists('*prop_add') && has('patch-9.0.0178') |
|
|
|
let g:lsp_diagnostics_virtual_text_enabled = 1 |
|
|
|
let g:lsp_diagnostics_virtual_text_align = "after" |
|
|
|
let g:lsp_diagnostics_virtual_text_padding_left = 5 |
|
|
|
else |
|
|
|
let g:lsp_diagnostics_float_cursor = 1 |
|
|
|
let g:lsp_diagnostics_float_delay = 1 |
|
|
|
endif |
|
|
|
|
|
|
|
augroup lsp_install |
|
|
|