modify lsp config
This commit is contained in:
parent
d7401d98f9
commit
7a7a4b5e94
@ -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
|
||||||
" --------------------
|
" --------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user