Add Java Language Server

This commit is contained in:
Artemis Tosini 2022-02-13 18:58:00 +00:00
parent bbb625554e
commit e059c9beec
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
2 changed files with 6 additions and 1 deletions

View file

@ -19,7 +19,8 @@ in
enable = true; enable = true;
vimAlias = true; vimAlias = true;
extraConfig = (builtins.replaceStrings 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)); (builtins.readFile ./init.vim));
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
editorconfig-vim editorconfig-vim

View file

@ -69,6 +69,10 @@ nvim_lsp['clangd'].setup {
on_attach = on_attach, on_attach = on_attach,
cmd = { "{{CLANGDPATH}}" } 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['rust_analyzer'].setup { on_attach = on_attach }
nvim_lsp['rnix'].setup { on_attach = on_attach } nvim_lsp['rnix'].setup { on_attach = on_attach }