From 15689ccbad294e7b6b7c639adeb39b5c35e89dbf Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 29 Sep 2021 09:47:30 +0800 Subject: Update some configs --- .vim/plugin/godot.vim | 2 -- .vim/plugin/init.vim | 46 +++------------------------------------------- .vim/plugin/ledger.vim | 12 ++++++++++++ 3 files changed, 15 insertions(+), 45 deletions(-) create mode 100644 .vim/plugin/ledger.vim diff --git a/.vim/plugin/godot.vim b/.vim/plugin/godot.vim index 49354f8..6bcf679 100644 --- a/.vim/plugin/godot.vim +++ b/.vim/plugin/godot.vim @@ -14,8 +14,6 @@ let g:ycm_language_server += [ \ } \ ] -let g:Lf_RootMarkers += ['project.godot'] - func! s:godot_settings() abort setlocal tabstop=4 nnoremap rl :GodotRunLast diff --git a/.vim/plugin/init.vim b/.vim/plugin/init.vim index eff5185..0c2f2dd 100644 --- a/.vim/plugin/init.vim +++ b/.vim/plugin/init.vim @@ -14,6 +14,8 @@ function! s:load_settings() endfor endfunction +let g:ycm_language_server = [] + call plug#begin('~/.vim/plugged') " General @@ -23,11 +25,11 @@ Plug 'Valloric/YouCompleteMe', { Plug 'prabirshrestha/vim-lsp' Plug 'dense-analysis/ale' -Plug 'sheerun/vim-polyglot' Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' Plug 'tpope/vim-eunuch' Plug 'godlygeek/tabular' +Plug 'airblade/vim-rooter' Plug 'ludovicchabant/vim-gutentags' let g:gutentags_project_root = ['.root', '.svn', '.git', '.hg', '.project'] @@ -37,8 +39,6 @@ let g:gutentags_ctags_extra_args = ['--c++-kinds=+px'] let g:gutentags_ctags_extra_args = ['--c-kinds=+px'] -let g:ycm_language_server = [] -let g:Lf_RootMarkers = [] Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' @@ -58,49 +58,11 @@ Plug 'habamax/vim-godot', {'for': 'gdscript'} Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} Plug 'ledger/vim-ledger', {'for': 'ledger'} -let g:ledger_bin = 'ledger' -let g:ledger_align_at = 50 -let g:ledger_commodity_before = 0 - -au FileType ledger call s:ledger_keymap() - -function! s:ledger_keymap() abort - noremap { ?^\d - noremap } /^\d - inoremap =ledger#autocomplete_and_align() - vnoremap :LedgerAlign -endfunction Plug 'iamcco/markdown-preview.nvim', { \ 'do': {-> mkdp#util#install()}, \ 'for': ['markdown', 'vim-plug'] \ } -" REPL -Plug 'jpalardy/vim-slime', { - \'on': [ - \'SlimeRegionSend', - \'SlimeParagraphSend', - \'SlimeConfig' - \] - \} - -let g:slime_no_mappings = 1 - -xmap SlimeRegionSend -nmap SlimeParagraphSend -nmap v SlimeConfig - -let g:slime_target = 'tmux' - -" Misc -Plug 'skywind3000/asyncrun.vim' - -let g:asyncrun_open = 6 " the number of lines of quickfix window -let g:asyncrun_bell = 1 " the bell rings when the task is done -" use f10 to open/close asyncrun quickfix window -nnoremap :call asyncrun#quickfix_toggle(6) - - Plug 'mhinz/vim-signify' Plug 'tpope/vim-unimpaired' @@ -113,8 +75,6 @@ let g:vista_executive_for = { \ 'go': 'vim_lsp', \ } -nnoremap s :Vista - Plug 'puremourning/vimspector', { 'on': 'VimspectorContinue' } let g:vimspector_install_gadgets = ['debugpy'] diff --git a/.vim/plugin/ledger.vim b/.vim/plugin/ledger.vim new file mode 100644 index 0000000..0dc2e82 --- /dev/null +++ b/.vim/plugin/ledger.vim @@ -0,0 +1,12 @@ +let g:ledger_bin = 'ledger' +let g:ledger_align_at = 50 +let g:ledger_commodity_before = 0 + +au FileType ledger call s:ledger_keymap() + +function! s:ledger_keymap() abort + noremap { ?^\d + noremap } /^\d + inoremap =ledger#autocomplete_and_align() + vnoremap :LedgerAlign +endfunction -- cgit v1.2.3