diff options
-rw-r--r-- | .vim/plugin/godot.vim | 2 | ||||
-rw-r--r-- | .vim/plugin/init.vim | 46 | ||||
-rw-r--r-- | .vim/plugin/ledger.vim | 12 |
3 files changed, 15 insertions, 45 deletions
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 <buffer> <leader>rl :GodotRunLast<CR> 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<CR> - noremap } /^\d<CR> - inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> - vnoremap <silent> <Tab> :LedgerAlign<CR> -endfunction Plug 'iamcco/markdown-preview.nvim', { \ 'do': {-> mkdp#util#install()}, \ 'for': ['markdown', 'vim-plug'] \ } -" REPL -Plug 'jpalardy/vim-slime', { - \'on': [ - \'<Plug>SlimeRegionSend', - \'<Plug>SlimeParagraphSend', - \'<Plug>SlimeConfig' - \] - \} - -let g:slime_no_mappings = 1 - -xmap <c-c><c-c> <Plug>SlimeRegionSend -nmap <c-c><c-c> <Plug>SlimeParagraphSend -nmap <c-c>v <Plug>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 <F10> :call asyncrun#quickfix_toggle(6)<cr> - - Plug 'mhinz/vim-signify' Plug 'tpope/vim-unimpaired' @@ -113,8 +75,6 @@ let g:vista_executive_for = { \ 'go': 'vim_lsp', \ } -nnoremap <leader>s :Vista<CR> - Plug 'puremourning/vimspector', { 'on': '<Plug>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<CR> + noremap } /^\d<CR> + inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> + vnoremap <silent> <Tab> :LedgerAlign<CR> +endfunction |