plugins - Re-added LSP plugins
This commit is contained in:
parent
185b985b93
commit
6a54605c21
6 changed files with 8 additions and 2 deletions
19
plugins/vim-lsp-settings.cfg.vim
Normal file
19
plugins/vim-lsp-settings.cfg.vim
Normal file
|
@ -0,0 +1,19 @@
|
|||
let g:lsp_settings = {
|
||||
\ 'pylsp-all': {
|
||||
\ 'workspace_config': {
|
||||
\ 'pylsp': {
|
||||
\ 'plugins': {
|
||||
\ 'black': {
|
||||
\ 'enabled' : v:true ,
|
||||
\ },
|
||||
\ 'pycodestyle': {
|
||||
\ 'maxLineLength' : 88 ,
|
||||
\ },
|
||||
\ 'pylint': {
|
||||
\ 'enabled': v:true,
|
||||
\ }
|
||||
\ }
|
||||
\ }
|
||||
\ }
|
||||
\ },
|
||||
\}
|
4
plugins/vim-lsp-settings.load.vim
Normal file
4
plugins/vim-lsp-settings.load.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
call dein#add('mattn/vim-lsp-settings', #{
|
||||
\ lazy: 1,
|
||||
\ on_event: 'VimEnter',
|
||||
\ })
|
24
plugins/vim-lsp.cfg.vim
Normal file
24
plugins/vim-lsp.cfg.vim
Normal file
|
@ -0,0 +1,24 @@
|
|||
" Highlight references
|
||||
let g:lsp_highlight_references_enabled = 1
|
||||
highlight lspReference cterm=bold,italic ctermfg=148 ctermbg=0
|
||||
|
||||
" Error/warning signs
|
||||
let g:lsp_diagnostics_signs_enabled = 1
|
||||
let g:lsp_diagnostics_echo_cursor = 1
|
||||
let g:lsp_diagnostics_signs_error = {'text': '✗'}
|
||||
let g:lsp_diagnostics_signs_warning = {'text': '‼'}
|
||||
|
||||
" "Virtual" text right in the middle of the code? hell no.
|
||||
let g:lsp_diagnostics_virtual_text_enabled = 0
|
||||
|
||||
" Keyboard shortcuts
|
||||
noremap <Leader>lR :LspRename<cr>
|
||||
noremap <Leader>lS :LspWorkspaceSymbol<cr>
|
||||
noremap <Leader>la :LspCodeAction<cr>
|
||||
noremap <Leader>ld :LspDocumentDiagnostics<cr>
|
||||
noremap <Leader>lf :LspDocumentFormat<cr>
|
||||
noremap <Leader>lgD :LspDeclaration<cr>
|
||||
noremap <Leader>lgd :LspDefinition<cr>
|
||||
noremap <Leader>li :LspHover<cr>
|
||||
noremap <Leader>lr :LspReferences<cr>
|
||||
noremap <Leader>ls :LspDocumentSymbol<cr>
|
4
plugins/vim-lsp.load.vim
Normal file
4
plugins/vim-lsp.load.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
call dein#add('prabirshrestha/vim-lsp', #{
|
||||
\ lazy: 1,
|
||||
\ on_event: 'VimEnter',
|
||||
\ })
|
Loading…
Add table
Add a link
Reference in a new issue