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:
parent
b0d5b9765e
commit
00cbed4cdc
@ -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
|
||||
|
||||
@ -79,9 +79,9 @@ endfunction
|
||||
function! utils#ToggleCursorCol() abort
|
||||
if &cursorcolumn
|
||||
set nocursorcolumn
|
||||
echo "cursorcolumn: OFF"
|
||||
echo 'cursorcolumn: OFF'
|
||||
else
|
||||
set cursorcolumn
|
||||
echo "cursorcolumn: ON"
|
||||
echo 'cursorcolumn: ON'
|
||||
endif
|
||||
endfunction
|
||||
|
||||
@ -1 +1,4 @@
|
||||
autocmd BufRead,BufNewFile *.pdc set filetype=markdown
|
||||
augroup det_md
|
||||
autocmd!
|
||||
autocmd BufRead,BufNewFile *.pdc set filetype=markdown
|
||||
augroup END
|
||||
|
||||
@ -28,7 +28,7 @@ set noswapfile
|
||||
" Set up backup directory
|
||||
let g:backupdir=expand(stdpath('data') . '/backup')
|
||||
if !isdirectory(g:backupdir)
|
||||
call mkdir(g:backupdir, "p")
|
||||
call mkdir(g:backupdir, 'p')
|
||||
endif
|
||||
let &backupdir=g:backupdir
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
scriptencoding utf-8
|
||||
"{ Plugin installation
|
||||
"{{ Vim-plug Install and related settings
|
||||
|
||||
@ -536,9 +537,9 @@ nnoremap <silent> <Space>t :TagbarToggle<CR>
|
||||
|
||||
" Add support for markdown files in tagbar.
|
||||
if g:is_win
|
||||
let g:md_ctags_bin=fnamemodify(g:nvim_config_root."\\tools\\markdown2ctags.exe", ":p")
|
||||
let g:md_ctags_bin=fnamemodify(g:nvim_config_root."\\tools\\markdown2ctags.exe", ':p')
|
||||
else
|
||||
let g:md_ctags_bin=fnamemodify(g:nvim_config_root."/tools/markdown2ctags.py", ":p")
|
||||
let g:md_ctags_bin=fnamemodify(g:nvim_config_root.'/tools/markdown2ctags.py', ':p')
|
||||
endif
|
||||
|
||||
let g:tagbar_type_markdown = {
|
||||
|
||||
2
ui.vim
2
ui.vim
@ -4,7 +4,7 @@
|
||||
" support true colors! For a comprehensive list of terminals supporting true
|
||||
" colors, see https://github.com/termstandard/colors and
|
||||
" https://gist.github.com/XVilka/8346728.
|
||||
if $TERM == "xterm-256color" || exists('g:started_by_firenvim')
|
||||
if $TERM ==# 'xterm-256color' || exists('g:started_by_firenvim')
|
||||
set termguicolors
|
||||
endif
|
||||
" Use dark background
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user