Skip to content

Commit

Permalink
update default go-lsp to gopls (#4338)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelazar committed Jul 19, 2021
1 parent 21398fc commit 46346dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autoload/SpaceVim/layers/lang/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function! SpaceVim#layers#lang#go#config() abort
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_fmt_command = 'goimports'
let g:go_fmt_command = 'gopls'
let g:syntastic_go_checkers = ['golint', 'govet']
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
let g:neomake_go_gometalinter_args = ['--disable-all']
Expand Down
2 changes: 1 addition & 1 deletion autoload/SpaceVim/layers/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ let s:lsp_servers = {
\ 'css' : ['css-languageserver', '--stdio'],
\ 'dart' : ['dart_language_server'],
\ 'dockerfile' : ['docker-langserver', '--stdio'],
\ 'go' : ['go-langserver', '-mode', 'stdio'],
\ 'go' : ['gopls'],
\ 'haskell' : ['hie-wrapper', '--lsp'],
\ 'html' : ['html-languageserver', '--stdio'],
\ 'javascript' : ['javascript-typescript-stdio'],
Expand Down
2 changes: 1 addition & 1 deletion docs/cn/layers/language-server-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ gem install solargraph
| `crystal` | `['scry']` |
| `css` | `['css-languageserver', '--stdio']` |
| `dart` | `['dart_language_server']` |
| `go` | `['go-langserver', '-mode', 'stdio']` |
| `go` | `['gopls']` |
| `haskell` | `['hie', '--lsp']` |
| `html` | `['html-languageserver', '--stdio']` |
| `javascript` | `['javascript-typescript-stdio']` |
Expand Down
2 changes: 1 addition & 1 deletion docs/layers/language-server-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ default language server commands:
| `css` | `['css-languageserver', '--stdio']` |
| `dart` | `['dart_language_server']` |
| `elm` | `['elm-language-server']` |
| `go` | `['go-langserver', '-mode', 'stdio']` |
| `go` | `['gopls']` |
| `haskell` | `['hie', '--lsp']` |
| `html` | `['html-languageserver', '--stdio']` |
| `javascript` | `['javascript-typescript-stdio']` |
Expand Down

0 comments on commit 46346dd

Please sign in to comment.