Commit Graph

5 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto 2b2fc48fcb Remove vestigial augroup wrappers from settings files
The augroup/au! wrapper was needed when registration was done with
':autocmd User lsp_setup', to avoid stacking duplicate autocmds on
re-source. Now that registration is a plain function call, augroup has
no effect on it. Drop the wrapper where it only enclosed the
registration, and keep augroups only around real autocmds, moving the
registration call out in front of them (the original order, call then
autocmd, is preserved).
2026-06-11 14:10:28 +09:00
Yasuhiro Matsumoto 05bd55754e Call lsp_settings#register_server() directly in settings files
The LspRegisterServer user command was introduced to hide the
version-dependent ':autocmd User lsp_setup ++once' boilerplate (#7),
but registration has been immediate since loading became lazy per
filetype. A user command's argument is evaluated in the script context
where the command was defined, so settings files could not use
script-local helpers. Calling the function directly evaluates the
argument in each settings file's own context, which allows the global
Vim_lsp_settings_* helper functions to become script-local. The
LspRegisterServer command itself is kept for backward compatibility.
2026-06-11 14:01:38 +09:00
Yasuhiro Matsumoto eb11c046e5 Add args
Fixes #460
2021-09-07 18:17:15 +09:00
Yasuhiro Matsumoto 368201de63 Fix java-language-server.vim 2020-08-14 13:11:35 +09:00
mattn 2f2b7ea7a7 [WIP] Add java-language-server (#300) 2020-08-14 09:03:32 +09:00