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 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
|
||||||
|
|||||||
@ -20,5 +20,5 @@ 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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
" 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
|
||||||
|
|
||||||
|
|||||||
@ -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
2
ui.vim
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user