diff --git a/home/neovim/default.nix b/home/neovim/default.nix index c73e16a..6940aef 100644 --- a/home/neovim/default.nix +++ b/home/neovim/default.nix @@ -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 diff --git a/home/neovim/init.vim b/home/neovim/init.vim index 11671f6..c5008b6 100644 --- a/home/neovim/init.vim +++ b/home/neovim/init.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 }