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 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

View File

@ -20,5 +20,5 @@ if &runtimepath =~? 'auto-pairs'
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
" Do not use `"` for vim script since `"` is also used for comment
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", "`":"`", '<':'>'}
let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '`':'`', '<':'>'}
endif

View File

@ -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

View File

@ -1 +1,4 @@
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
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

View File

@ -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
View File

@ -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