Created
April 11, 2024 07:29
-
-
Save wordijp/fe5745a3278f23d6139a6fd5ddbf2ad3 to your computer and use it in GitHub Desktop.
vim-lsp最小構成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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