Compare commits
3 Commits
a242455732
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fc078fd3b | |||
| 7439b8f0a7 | |||
| 6ab3026ae1 |
@@ -9,11 +9,6 @@
|
|||||||
"command": "/sbin/texlab",
|
"command": "/sbin/texlab",
|
||||||
"filetypes": [ "tex","bib","plaintex","context" ]
|
"filetypes": [ "tex","bib","plaintex","context" ]
|
||||||
},
|
},
|
||||||
"bash": {
|
|
||||||
"command": "bash-language-server",
|
|
||||||
"args": ["start"],
|
|
||||||
"filetypes": ["sh","bash"]
|
|
||||||
},
|
|
||||||
"golang": {
|
"golang": {
|
||||||
"command": "gopls",
|
"command": "gopls",
|
||||||
"rootPatterns": ["go.mod"],
|
"rootPatterns": ["go.mod"],
|
||||||
|
|||||||
16
init.vim
16
init.vim
@@ -30,7 +30,7 @@ filetype plugin on
|
|||||||
" indentation
|
" indentation
|
||||||
set tabstop=4 " tabs only count for 4 spaces
|
set tabstop=4 " tabs only count for 4 spaces
|
||||||
set shiftwidth=4 " when indenting use 4 spaces
|
set shiftwidth=4 " when indenting use 4 spaces
|
||||||
set expandtab " use tab characters
|
set noexpandtab " use tab characters
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
" view
|
" view
|
||||||
@@ -58,14 +58,14 @@ function! CheckBackspace() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||||
|
\ CheckBackspace() ? "\<Tab>" :
|
||||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||||
\ CheckBackspace() ? "\<Tab>" :
|
\ coc#refresh()
|
||||||
\ coc#refresh()
|
|
||||||
inoremap <silent><expr> <S-TAB>
|
inoremap <silent><expr> <S-TAB>
|
||||||
\ coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
\ coc#pum#visible() ? coc#pum#prev(1) :
|
||||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
|
||||||
\ CheckBackspace() ? "\<S-Tab>" :
|
\ CheckBackspace() ? "\<S-Tab>" :
|
||||||
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
let g:coc_disable_startup_warning = 1
|
let g:coc_disable_startup_warning = 1
|
||||||
|
|
||||||
@@ -99,10 +99,6 @@ nmap <silent><nowait> gy <Plug>(coc-type-definition)
|
|||||||
nmap <silent><nowait> gi <Plug>(coc-implementation)
|
nmap <silent><nowait> gi <Plug>(coc-implementation)
|
||||||
nmap <silent><nowait> gr <Plug>(coc-references)
|
nmap <silent><nowait> gr <Plug>(coc-references)
|
||||||
|
|
||||||
" Temporary!!! Remove after CoC update
|
|
||||||
let storage_file = stdpath('data') . '/coc-localstorage'
|
|
||||||
let g:coc_node_args = ['--localstorage-file=' . storage_file]
|
|
||||||
|
|
||||||
" syntax highlighting
|
" syntax highlighting
|
||||||
syntax on
|
syntax on
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|||||||
Reference in New Issue
Block a user