aboutsummaryrefslogtreecommitdiff
path: root/settings/fortls.vim
diff options
context:
space:
mode:
authorMitsuo Heijo <mitsuo.heijo@gmail.com>2019-12-24 23:38:50 +0900
committerMitsuo Heijo <mitsuo.heijo@gmail.com>2019-12-24 23:39:14 +0900
commitc61632d625d340db4dcb4cc57c7d1d38fac5ccb8 (patch)
tree3da978115f86719d344ac34d1d51df94d39a5d5c /settings/fortls.vim
parent6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (diff)
downloadvim-lsp-settings-c61632d625d340db4dcb4cc57c7d1d38fac5ccb8.tar.gz
vim-lsp-settings-c61632d625d340db4dcb4cc57c7d1d38fac5ccb8.tar.bz2
vim-lsp-settings-c61632d625d340db4dcb4cc57c7d1d38fac5ccb8.zip
feature: support metals, fortls
- fix: imporve npm and pip install - proposal: add simple test script
Diffstat (limited to 'settings/fortls.vim')
-rw-r--r--settings/fortls.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/settings/fortls.vim b/settings/fortls.vim
new file mode 100644
index 0000000..78c29ea
--- /dev/null
+++ b/settings/fortls.vim
@@ -0,0 +1,12 @@
+augroup vimlsp_settings_fortls
+ au!
+ autocmd User lsp_setup ++once call lsp#register_server({
+ \ 'name': 'fortls',
+ \ 'cmd': {server_info->lsp_settings#get('fortls', 'cmd', [lsp_settings#exec_path('fortls')])},
+ \ 'initialization_options': lsp_settings#get('fortls', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('fortls', 'whitelist', ['fortran']),
+ \ 'blacklist': lsp_settings#get('fortls', 'blacklist', []),
+ \ 'config': lsp_settings#get('fortls', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('fortls', 'workspace_config', {}),
+ \ })
+augroup END