Add Java Language Server
This commit is contained in:
parent
bbb625554e
commit
e059c9beec
|
@ -19,7 +19,8 @@ in
|
|||
enable = true;
|
||||
vimAlias = true;
|
||||
extraConfig = (builtins.replaceStrings
|
||||
[ "{{CLANGDPATH}}" ] [ "${pkgs.clang-tools}/bin/clangd" ]
|
||||
[ "{{CLANGDPATH}}" "{{JLSPATH}}" ]
|
||||
[ "${pkgs.clang-tools}/bin/clangd" "${pkgs.java-language-server}/bin/java-language-server" ]
|
||||
(builtins.readFile ./init.vim));
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
editorconfig-vim
|
||||
|
|
|
@ -69,6 +69,10 @@ nvim_lsp['clangd'].setup {
|
|||
on_attach = on_attach,
|
||||
cmd = { "{{CLANGDPATH}}" }
|
||||
}
|
||||
nvim_lsp['java_language_server'].setup {
|
||||
on_attach = on_attach,
|
||||
cmd = { "{{JLSPATH}}" }
|
||||
}
|
||||
nvim_lsp['rust_analyzer'].setup { on_attach = on_attach }
|
||||
nvim_lsp['rnix'].setup { on_attach = on_attach }
|
||||
|
||||
|
|
Loading…
Reference in a new issue