Some filetype specific settings

This commit is contained in:
Alexander Gehrke 2021-09-21 16:43:00 +02:00
parent d0a301d557
commit f6c0c86580
5 changed files with 17 additions and 16 deletions

View file

@ -1,8 +1,9 @@
set textwidth=0 set textwidth=0
inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> "inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR>
vnoremap <silent> <buffer> <Tab> :LedgerAlign<CR> "vnoremap <silent> <buffer> <Tab> :LedgerAlign<CR>
inoremap <S-TAB> <TAB> "inoremap <S-TAB> <TAB>
noremap { ?^\d<CR> "noremap { ?^\d<CR>
noremap } /^\d<CR> "noremap } /^\d<CR>
noremap <leader>F <cmd>%LedgerAlign<cr> "noremap <leader>F <cmd>%LedgerAlign<cr>
noremap <leader>f <cmd>LedgerAlign<cr> "noremap <leader>f <cmd>LedgerAlign<cr>
setlocal omnifunc=hledger#complete#omnifunc

View file

@ -1,7 +1,4 @@
let g:vimtex_quickfix_latexlog = { let g:vimtex_quickfix_ignorefilters = [
\ 'overfull' : 0, \ 'overfull',
\ 'underfull' : 0, \ 'underfull',
\ 'packages' : { \]
\ 'default' : 0,
\ },
\}

View file

@ -1208,7 +1208,8 @@ function! s:update_impl(pull, force, args) abort
normal! 2G normal! 2G
silent! redraw 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) if get(g:, 'plug_shallow', 1)
call extend(s:clone_opt, ['--depth', '1']) call extend(s:clone_opt, ['--depth', '1'])
if s:git_version_requirement(1, 7, 10) if s:git_version_requirement(1, 7, 10)

View file

@ -83,12 +83,14 @@ Plug 'tpope/vim-markdown'
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
" let g:vimtex_compiler_method = 'arara' " let g:vimtex_compiler_method = 'arara'
Plug 'ledger/vim-ledger' Plug 'ledger/vim-ledger'
Plug 'anekos/hledger-vim'
Plug 'elzr/vim-json' Plug 'elzr/vim-json'
Plug 'kchmck/vim-coffee-script' Plug 'kchmck/vim-coffee-script'
Plug 'gre/play2vim' Plug 'gre/play2vim'
Plug 'isobit/vim-caddyfile' Plug 'isobit/vim-caddyfile'
Plug 'vim-pandoc/vim-pandoc' Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax' Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'GEverding/vim-hocon'
function! BuildComposer(info) function! BuildComposer(info)
if a:info.status != 'unchanged' || a:info.force if a:info.status != 'unchanged' || a:info.force

View file

@ -5,4 +5,4 @@ function! s:editft()
endfunction endfunction
noremap <silent> <Plug>(EditFT) <cmd>call <SID>editft()<cr> noremap <silent> <Plug>(EditFT) <cmd>call <SID>editft()<cr>
map <leader>ftp <Plug>(EditFT) map <leader><leader>ftp <Plug>(EditFT)