vim: more lsp
This commit is contained in:
parent
10b0b2360f
commit
e4cea56abf
9
vimrc
9
vimrc
@ -122,6 +122,7 @@ endif
|
|||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
|
||||||
Plug 'folke/lua-dev.nvim'
|
Plug 'folke/lua-dev.nvim'
|
||||||
|
Plug 'simrat39/rust-tools.nvim'
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -146,6 +147,8 @@ se inccommand=nosplit
|
|||||||
set mouse=
|
set mouse=
|
||||||
set title
|
set title
|
||||||
|
|
||||||
|
se scl=yes:1 " say no to wobbly side column
|
||||||
|
|
||||||
let mapleader=" "
|
let mapleader=" "
|
||||||
|
|
||||||
let g:jellybeans_overrides = {
|
let g:jellybeans_overrides = {
|
||||||
@ -268,6 +271,10 @@ local luadev = require("lua-dev").setup({
|
|||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
lspconfig.sumneko_lua.setup(luadev)
|
lspconfig.sumneko_lua.setup(luadev)
|
||||||
lspconfig.ccls.setup{}
|
lspconfig.ccls.setup{}
|
||||||
|
lspconfig.pyright.setup{}
|
||||||
|
lspconfig.tsserver.setup{}
|
||||||
|
|
||||||
|
require('rust-tools').setup{}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -278,6 +285,8 @@ hi LspDiagnosticsDefaultError cterm=bold ctermfg=Red
|
|||||||
hi LspDiagnosticsDefaultWarning cterm=bold ctermfg=Yellow
|
hi LspDiagnosticsDefaultWarning cterm=bold ctermfg=Yellow
|
||||||
hi LspDiagnosticsDefaultInformation ctermfg=Blue
|
hi LspDiagnosticsDefaultInformation ctermfg=Blue
|
||||||
|
|
||||||
|
au syntax leaninfo setl scl=no
|
||||||
|
|
||||||
inoremap <silent><expr> <C-Space> compe#complete()
|
inoremap <silent><expr> <C-Space> compe#complete()
|
||||||
inoremap <silent><expr> <CR> compe#confirm('<CR>')
|
inoremap <silent><expr> <CR> compe#confirm('<CR>')
|
||||||
inoremap <silent><expr> <C-e> compe#close('<C-e>')
|
inoremap <silent><expr> <C-e> compe#close('<C-e>')
|
||||||
|
Loading…
Reference in New Issue
Block a user