1
0
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:
jdhao 2020-09-24 23:01:10 +08:00
parent b0d5b9765e
commit 00cbed4cdc
7 changed files with 16 additions and 12 deletions

View File

@ -1,7 +1,7 @@
set concealcursor=c set concealcursor=c
set synmaxcol=3000 " For long Chinese paragraphs set synmaxcol=3000 " For long Chinese paragraphs
if exists(":FootnoteNumber") if exists(':FootnoteNumber')
nnoremap <buffer> <Plug>AddVimFootnote :<c-u>call markdownfootnotes#VimFootnotes('i')<CR> nnoremap <buffer> <Plug>AddVimFootnote :<c-u>call markdownfootnotes#VimFootnotes('i')<CR>
inoremap <buffer> <Plug>AddVimFootnote <C-O>:<c-u>call markdownfootnotes#VimFootnotes('i')<CR> inoremap <buffer> <Plug>AddVimFootnote <C-O>:<c-u>call markdownfootnotes#VimFootnotes('i')<CR>
endif endif

View File

@ -9,7 +9,7 @@ set formatoptions-=r
" focus is lost (see " focus is lost (see
" https://github.com/tmux-plugins/vim-tmux-focus-events/issues/14) " https://github.com/tmux-plugins/vim-tmux-focus-events/issues/14)
set foldmethod=expr foldlevel=0 foldlevelstart=-1 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, " Use :help command for keyword when pressing `K` in vim file,
" see `:h K` and https://stackoverflow.com/q/15867323/6064933 " 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 " Only define following variable if Auto-pairs plugin is used
if &runtimepath =~? 'auto-pairs' if &runtimepath =~? 'auto-pairs'
let b:AutoPairs = AutoPairsDefine({'<' : '>'}) let b:AutoPairs = AutoPairsDefine({'<' : '>'})
" Do not use `"` for vim script since `"` is also used for comment " Do not use `"` for vim script since `"` is also used for comment
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", "`":"`", '<':'>'} let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '`':'`', '<':'>'}
endif endif

View File

@ -79,9 +79,9 @@ endfunction
function! utils#ToggleCursorCol() abort function! utils#ToggleCursorCol() abort
if &cursorcolumn if &cursorcolumn
set nocursorcolumn set nocursorcolumn
echo "cursorcolumn: OFF" echo 'cursorcolumn: OFF'
else else
set cursorcolumn set cursorcolumn
echo "cursorcolumn: ON" echo 'cursorcolumn: ON'
endif endif
endfunction endfunction

View File

@ -1 +1,4 @@
autocmd BufRead,BufNewFile *.pdc set filetype=markdown augroup det_md
autocmd!
autocmd BufRead,BufNewFile *.pdc set filetype=markdown
augroup END

View File

@ -28,7 +28,7 @@ set noswapfile
" Set up backup directory " Set up backup directory
let g:backupdir=expand(stdpath('data') . '/backup') let g:backupdir=expand(stdpath('data') . '/backup')
if !isdirectory(g:backupdir) if !isdirectory(g:backupdir)
call mkdir(g:backupdir, "p") call mkdir(g:backupdir, 'p')
endif endif
let &backupdir=g:backupdir let &backupdir=g:backupdir

View File

@ -1,3 +1,4 @@
scriptencoding utf-8
"{ Plugin installation "{ Plugin installation
"{{ Vim-plug Install and related settings "{{ Vim-plug Install and related settings
@ -536,9 +537,9 @@ nnoremap <silent> <Space>t :TagbarToggle<CR>
" Add support for markdown files in tagbar. " Add support for markdown files in tagbar.
if g:is_win 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 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 endif
let g:tagbar_type_markdown = { let g:tagbar_type_markdown = {

2
ui.vim
View File

@ -4,7 +4,7 @@
" support true colors! For a comprehensive list of terminals supporting true " support true colors! For a comprehensive list of terminals supporting true
" colors, see https://github.com/termstandard/colors and " colors, see https://github.com/termstandard/colors and
" https://gist.github.com/XVilka/8346728. " 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 set termguicolors
endif endif
" Use dark background " Use dark background