From f6c0c865806c3d01a6fab6b180dab3b019da3eba Mon Sep 17 00:00:00 2001 From: Alexander Gehrke <github@qwertyuiop.de> Date: Tue, 21 Sep 2021 16:43:00 +0200 Subject: [PATCH] Some filetype specific settings --- after/ftplugin/ledger.vim | 15 ++++++++------- after/plugin/vimtex.vim | 11 ++++------- autoload/plug.vim | 3 ++- packages.vim | 2 ++ plugin/editft.vim | 2 +- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/after/ftplugin/ledger.vim b/after/ftplugin/ledger.vim index e807772..0799285 100644 --- a/after/ftplugin/ledger.vim +++ b/after/ftplugin/ledger.vim @@ -1,8 +1,9 @@ set textwidth=0 -inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> -vnoremap <silent> <buffer> <Tab> :LedgerAlign<CR> -inoremap <S-TAB> <TAB> -noremap { ?^\d<CR> -noremap } /^\d<CR> -noremap <leader>F <cmd>%LedgerAlign<cr> -noremap <leader>f <cmd>LedgerAlign<cr> +"inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> +"vnoremap <silent> <buffer> <Tab> :LedgerAlign<CR> +"inoremap <S-TAB> <TAB> +"noremap { ?^\d<CR> +"noremap } /^\d<CR> +"noremap <leader>F <cmd>%LedgerAlign<cr> +"noremap <leader>f <cmd>LedgerAlign<cr> +setlocal omnifunc=hledger#complete#omnifunc diff --git a/after/plugin/vimtex.vim b/after/plugin/vimtex.vim index a1ec473..d813c7a 100644 --- a/after/plugin/vimtex.vim +++ b/after/plugin/vimtex.vim @@ -1,7 +1,4 @@ -let g:vimtex_quickfix_latexlog = { - \ 'overfull' : 0, - \ 'underfull' : 0, - \ 'packages' : { - \ 'default' : 0, - \ }, - \} +let g:vimtex_quickfix_ignorefilters = [ + \ 'overfull', + \ 'underfull', + \] diff --git a/autoload/plug.vim b/autoload/plug.vim index 6a958cb..b6e4cbf 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -1208,7 +1208,8 @@ function! s:update_impl(pull, force, args) abort normal! 2G silent! redraw - let s:clone_opt = [] + " Set remote name, overriding a possible user git config's clone.defaultRemoteName + let s:clone_opt = ['--origin', 'origin'] if get(g:, 'plug_shallow', 1) call extend(s:clone_opt, ['--depth', '1']) if s:git_version_requirement(1, 7, 10) diff --git a/packages.vim b/packages.vim index 9d4cd2e..15a77a5 100644 --- a/packages.vim +++ b/packages.vim @@ -83,12 +83,14 @@ Plug 'tpope/vim-markdown' Plug 'lervag/vimtex' " let g:vimtex_compiler_method = 'arara' Plug 'ledger/vim-ledger' +Plug 'anekos/hledger-vim' Plug 'elzr/vim-json' Plug 'kchmck/vim-coffee-script' Plug 'gre/play2vim' Plug 'isobit/vim-caddyfile' Plug 'vim-pandoc/vim-pandoc' Plug 'vim-pandoc/vim-pandoc-syntax' +Plug 'GEverding/vim-hocon' function! BuildComposer(info) if a:info.status != 'unchanged' || a:info.force diff --git a/plugin/editft.vim b/plugin/editft.vim index 9baa8be..14ea8a3 100644 --- a/plugin/editft.vim +++ b/plugin/editft.vim @@ -5,4 +5,4 @@ function! s:editft() endfunction noremap <silent> <Plug>(EditFT) <cmd>call <SID>editft()<cr> -map <leader>ftp <Plug>(EditFT) +map <leader><leader>ftp <Plug>(EditFT)