aboutsummaryrefslogtreecommitdiff
path: root/settings/golangci-lint-langserver.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-03-10 14:37:15 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-03-10 14:37:15 +0900
commitf7cf5ded9d76472c71cdbd17935aca38366944be (patch)
tree37d0045508a57145cb276428236e157b6de26e63 /settings/golangci-lint-langserver.vim
parenteb7e11c0680c12bf68fbd1b31cb7bec3cf4f494c (diff)
downloadvim-lsp-settings-f7cf5ded9d76472c71cdbd17935aca38366944be.tar.gz
vim-lsp-settings-f7cf5ded9d76472c71cdbd17935aca38366944be.tar.bz2
vim-lsp-settings-f7cf5ded9d76472c71cdbd17935aca38366944be.zip
Add golangci-lint-langserver
Diffstat (limited to 'settings/golangci-lint-langserver.vim')
-rw-r--r--settings/golangci-lint-langserver.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/settings/golangci-lint-langserver.vim b/settings/golangci-lint-langserver.vim
new file mode 100644
index 0000000..b2f3000
--- /dev/null
+++ b/settings/golangci-lint-langserver.vim
@@ -0,0 +1,14 @@
+augroup vim_lsp_settings_golangci_lint_langserver
+ au!
+ LspRegisterServer {
+ \ 'name': 'golangci-lint-langserver',
+ \ 'cmd': {server_info->lsp_settings#get('golangci-lint-langserver', 'cmd', [lsp_settings#exec_path('golangci-lint-langserver')])},
+ \ 'root_uri':{server_info->lsp_settings#get('golangci-lint-langserver', 'root_uri', lsp_settings#root_uri('golangci-lint-langserver'))},
+ \ 'initialization_options': lsp_settings#get('golangci-lint-langserver', 'initialization_options', {}),
+ \ 'whitelist': lsp_settings#get('golangci-lint-langserver', 'whitelist', ['go']),
+ \ 'blacklist': lsp_settings#get('golangci-lint-langserver', 'blacklist', []),
+ \ 'config': lsp_settings#get('golangci-lint-langserver', 'config', lsp_settings#server_config('golangci-lint-langserver')),
+ \ 'workspace_config': lsp_settings#get('golangci-lint-langserver', 'workspace_config', {}),
+ \ 'semantic_highlight': lsp_settings#get('golangci-lint-langserver', 'semantic_highlight', {}),
+ \ }
+augroup END