Skip to content

Instantly share code, notes, and snippets.

@wordijp
Created April 11, 2024 07:29
Show Gist options
  • Save wordijp/fe5745a3278f23d6139a6fd5ddbf2ad3 to your computer and use it in GitHub Desktop.
Save wordijp/fe5745a3278f23d6139a6fd5ddbf2ad3 to your computer and use it in GitHub Desktop.
vim-lsp最小構成
1. vimrcへ
```
" 最小限のプラグイン(vim-plugの場合)
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
" 定義へジャンプ
nnoremap <C-]> <plug>(lsp-definition)
" 次のエラー行へ
nnoremap ]q <plug>(lsp-next-diagnostic)
" 前のエラー行へ
nnoremap [q <plug>(lsp-previous-diagnostic)
```
2. ソース開いて
:LspInstallServer
3. vim再起動
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment