Configure jdt.ls java lsp
This commit is contained in:
parent
a5607a5b36
commit
5e3f643d51
2 changed files with 7 additions and 1 deletions
6
home.nix
6
home.nix
|
@ -111,6 +111,12 @@
|
|||
|
||||
set -xg JAVA_HOME /Users/salar/.nix-profile/bin
|
||||
|
||||
set -xg JDTLS_CONFIG /Users/salar/.config/nixpkgs/jdt-language-server/config_mac
|
||||
|
||||
set -xg JAR /Users/salar/.config/nixpkgs/jdt-language-server/plugins/org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar
|
||||
|
||||
set -xg WORKSPACE /Users/salar/Projects
|
||||
|
||||
set -xg NIX_PATH $HOME/.nix-defexpr/channels $NIX_PATH
|
||||
|
||||
set -xg FZF_DEFAULT_OPTS "--preview='bat {} --color=always'" \n
|
||||
|
|
|
@ -209,7 +209,7 @@ _G.load_config = function()
|
|||
end
|
||||
|
||||
-- Enable the following language servers
|
||||
local servers = { 'jdtls', 'pyright', 'rnix','sourcekit', 'sqlls' }
|
||||
local servers = { 'jdtls', 'pyright', 'rnix','sourcekit' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
nvim_lsp[lsp].setup { on_attach = on_attach }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue