[vim] update conf and ignore spelling dictionaries
This commit is contained in:
parent
111476dfda
commit
cd8cf9aa44
4 changed files with 24 additions and 17 deletions
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"suggest.noselect": false,
|
||||||
|
|
||||||
"languageserver": {
|
"languageserver": {
|
||||||
"golang": {
|
"golang": {
|
||||||
"command": "gopls",
|
"command": "gopls",
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
SQLite
|
|
||||||
MySQL
|
|
||||||
PostgreSQL
|
|
||||||
Gateway
|
|
||||||
Waarp
|
|
||||||
HTTP
|
|
||||||
HTTPS
|
|
||||||
R66
|
|
||||||
REST
|
|
||||||
JSON
|
|
||||||
SFTP
|
|
||||||
bug
|
|
Binary file not shown.
27
vim/.vimrc
27
vim/.vimrc
|
@ -12,6 +12,9 @@ set background=dark
|
||||||
let g:solarized_termcolors = 16
|
let g:solarized_termcolors = 16
|
||||||
let g:solarized_hitrail=1
|
let g:solarized_hitrail=1
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
|
if !empty($TMUX)
|
||||||
|
set termguicolors
|
||||||
|
endif
|
||||||
|
|
||||||
" have Vim load indentation rules and plugins
|
" have Vim load indentation rules and plugins
|
||||||
" according to the detected filetype.
|
" according to the detected filetype.
|
||||||
|
@ -91,8 +94,17 @@ let g:airline#extensions#tabline#enabled = 1
|
||||||
" Vim-go options
|
" Vim-go options
|
||||||
"let g:go_fmt_command = "goimports"
|
"let g:go_fmt_command = "goimports"
|
||||||
let g:go_fmt_command = "gopls"
|
let g:go_fmt_command = "gopls"
|
||||||
let g:go_gopls_gofumpt=1
|
let g:go_imports_mode = 'gopls'
|
||||||
let g:go_fmt_autosave = 1
|
let g:go_fmt_autosave = 1
|
||||||
|
|
||||||
|
" gopls settings
|
||||||
|
let g:go_gopls_gofumpt = 1
|
||||||
|
let g:go_gopls_staticcheck = 1
|
||||||
|
let g:go_gopls_analyses = 1
|
||||||
|
let g:go_gopls_complete_unimported = 1
|
||||||
|
let g:go_gopls_matcher = 'fuzzy'
|
||||||
|
let g:go_gopls_use_placeholders = 1
|
||||||
|
|
||||||
let g:go_metalinter_enabled = ['govet', 'golint', 'errcheck', 'staticcheck', 'gosimple', 'structcheck', 'varcheck', 'ineffassign', 'deadcode', 'gosec', 'unconvert', 'dupl', 'goconst', 'gocyclo', 'misspell', 'unparam', 'lll', 'interfacer', 'nakedret', 'scopelint']
|
let g:go_metalinter_enabled = ['govet', 'golint', 'errcheck', 'staticcheck', 'gosimple', 'structcheck', 'varcheck', 'ineffassign', 'deadcode', 'gosec', 'unconvert', 'dupl', 'goconst', 'gocyclo', 'misspell', 'unparam', 'lll', 'interfacer', 'nakedret', 'scopelint']
|
||||||
let g:go_metalinter_autosave = 0
|
let g:go_metalinter_autosave = 0
|
||||||
"let g:go_metalinter_autosave_enabled = ['govet', 'golint', 'errcheck']
|
"let g:go_metalinter_autosave_enabled = ['govet', 'golint', 'errcheck']
|
||||||
|
@ -123,7 +135,7 @@ let g:go_test_show_name = 1
|
||||||
let g:go_test_timeout= '60s'
|
let g:go_test_timeout= '60s'
|
||||||
let g:go_auto_type_info = 1
|
let g:go_auto_type_info = 1
|
||||||
let g:go_jump_to_error = 0
|
let g:go_jump_to_error = 0
|
||||||
let g:go_auto_sameids = 0
|
let g:go_auto_sameids = 1
|
||||||
|
|
||||||
" vimwiki options
|
" vimwiki options
|
||||||
let g:vimwiki_list = [{'path': '~/Notebook',
|
let g:vimwiki_list = [{'path': '~/Notebook',
|
||||||
|
@ -191,12 +203,14 @@ call plug#begin('~/.vim/plugged')
|
||||||
Plug 'liuchengxu/vim-clap', { 'do': { -> clap#installer#force_download() } }
|
Plug 'liuchengxu/vim-clap', { 'do': { -> clap#installer#force_download() } }
|
||||||
Plug 'dense-analysis/ale'
|
Plug 'dense-analysis/ale'
|
||||||
Plug 'joereynolds/vim-minisnip'
|
Plug 'joereynolds/vim-minisnip'
|
||||||
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'nullvoxpopuli/coc-ember', {'do': 'yarn install --frozen-lockfile'}
|
Plug 'nullvoxpopuli/coc-ember', {'do': 'yarn install --frozen-lockfile'}
|
||||||
Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
|
Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
|
||||||
Plug 'neoclide/coc-html', {'do': 'yarn install --frozen-lockfile'}
|
Plug 'neoclide/coc-html', {'do': 'yarn install --frozen-lockfile'}
|
||||||
Plug 'neoclide/coc-css', {'do': 'yarn install --frozen-lockfile'}
|
Plug 'neoclide/coc-css', {'do': 'yarn install --frozen-lockfile'}
|
||||||
Plug 'neoclide/coc-java', {'do': 'yarn install --frozen-lockfile'}
|
Plug 'neoclide/coc-java', {'do': 'yarn install --frozen-lockfile'}
|
||||||
|
Plug 'neoclide/coc-snippets', {'do': 'yarn install --frozen-lockfile'}
|
||||||
|
|
||||||
Plug 'aklt/plantuml-syntax'
|
Plug 'aklt/plantuml-syntax'
|
||||||
Plug 'scrooloose/vim-slumlord'
|
Plug 'scrooloose/vim-slumlord'
|
||||||
|
@ -274,21 +288,24 @@ endfunction
|
||||||
|
|
||||||
" Use tab for trigger completion with characters ahead and navigate.
|
" Use tab for trigger completion with characters ahead and navigate.
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ pumvisible() ? "\<C-n>" :
|
\ pumvisible() ? coc#_select_confirm() :
|
||||||
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
function! s:check_back_space() abort
|
||||||
let col = col('.') - 1
|
let col = col('.') - 1
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let g:coc_snippet_next = '<tab>'
|
||||||
|
|
||||||
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
|
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
|
||||||
" position. Coc only does snippet and additional edit on confirm.
|
" position. Coc only does snippet and additional edit on confirm.
|
||||||
if has('patch8.1.1068')
|
if has('patch8.1.1068')
|
||||||
" Use `complete_info` if your (Neo)Vim version supports it.
|
" Use `complete_info` if your (Neo)Vim version supports it.
|
||||||
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() :
|
||||||
|
\"\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
else
|
else
|
||||||
imap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
imap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue