modify lsp config

This commit is contained in:
Jay 2021-03-25 20:59:31 +08:00
parent d7401d98f9
commit 7a7a4b5e94

View File

@ -116,10 +116,9 @@ nnoremap <silent> <leader>gv <cmd>vsplit \| lua vim.lsp.buf.definition()<CR>
nnoremap <silent> <leader>grn <cmd>lua vim.lsp.buf.rename()<CR> nnoremap <silent> <leader>grn <cmd>lua vim.lsp.buf.rename()<CR>
" initialize lsp " initialize lsp
lua require'lspconfig'.bashls.setup{}
lua require'lspconfig'.gopls.setup{on_attach=require'completion'.on_attach} lua require'lspconfig'.gopls.setup{on_attach=require'completion'.on_attach}
lua require'lspconfig'.rust_analyzer.setup{} lua require'lspconfig'.rust_analyzer.setup{on_attach=require'completion'.on_attach}
lua require'lspconfig'.tsserver.setup{} lua require'lspconfig'.tsserver.setup{on_attach=require'completion'.on_attach}
" autocomplete setting " autocomplete setting
" -------------------- " --------------------