aboutsummaryrefslogtreecommitdiff
path: root/settings/golangci-lint-langserver.vim
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-03-10 14:56:03 +0900
committerGitHub <noreply@github.com>2020-03-10 14:56:03 +0900
commit3cf9a6013ee1100de1bd66d40747b529e4070b22 (patch)
treeccd36aab748759a76db0ad07965c8b0d58602949 /settings/golangci-lint-langserver.vim
parenteb7e11c0680c12bf68fbd1b31cb7bec3cf4f494c (diff)
parentd57fa14fec4bcd9824c2f4930c622ac2e2bdade5 (diff)
downloadvim-lsp-settings-3cf9a6013ee1100de1bd66d40747b529e4070b22.tar.gz
vim-lsp-settings-3cf9a6013ee1100de1bd66d40747b529e4070b22.tar.bz2
vim-lsp-settings-3cf9a6013ee1100de1bd66d40747b529e4070b22.zip
Merge pull request #194 from mattn/golangci-lint-langserver
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..ef2903c
--- /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', {'command': ['golangci-lint', 'run', '--enable-all', '--disable', 'lll', '--out-format', 'json']}),
+ \ '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