mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
fix style issues as per vint
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
set concealcursor=c
|
||||
set synmaxcol=3000 " For long Chinese paragraphs
|
||||
|
||||
if exists(":FootnoteNumber")
|
||||
if exists(':FootnoteNumber')
|
||||
nnoremap <buffer> <Plug>AddVimFootnote :<c-u>call markdownfootnotes#VimFootnotes('i')<CR>
|
||||
inoremap <buffer> <Plug>AddVimFootnote <C-O>:<c-u>call markdownfootnotes#VimFootnotes('i')<CR>
|
||||
endif
|
||||
|
||||
@@ -9,7 +9,7 @@ set formatoptions-=r
|
||||
" focus is lost (see
|
||||
" https://github.com/tmux-plugins/vim-tmux-focus-events/issues/14)
|
||||
set foldmethod=expr foldlevel=0 foldlevelstart=-1
|
||||
\ foldexpr=utils#VimFolds(v:lnum) foldtext=utils#MyFoldText()
|
||||
\ foldexpr=utils#VimFolds(v:lnum) foldtext=utils#MyFoldText()
|
||||
|
||||
" Use :help command for keyword when pressing `K` in vim file,
|
||||
" see `:h K` and https://stackoverflow.com/q/15867323/6064933
|
||||
@@ -17,8 +17,8 @@ set keywordprg=:help
|
||||
|
||||
" Only define following variable if Auto-pairs plugin is used
|
||||
if &runtimepath =~? 'auto-pairs'
|
||||
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
|
||||
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
|
||||
|
||||
" Do not use `"` for vim script since `"` is also used for comment
|
||||
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", "`":"`", '<':'>'}
|
||||
" Do not use `"` for vim script since `"` is also used for comment
|
||||
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '`':'`', '<':'>'}
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user