neovim-luca
nvim-jdtls
neovim-luca | nvim-jdtls | |
---|---|---|
4 | 75 | |
2 | 940 | |
- | - | |
3.9 | 6.6 | |
about 1 year ago | 1 day ago | |
Lua | Lua | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
neovim-luca
-
How can I install/build java-debug and vscode-java-debug
Hello guys. I installed neovim using my own nix flake: https://github.com/quoteme/neovim-luca
- Have you remapped CTRL and ESC, and if so, how?
-
how can I use a flake.nix in my configuration.nix (on a non-flake.nix nixos system)?
outputs = {self, nixpkgs}: let pkgs = nixpkgs.legacyPackages.x86_64-linux; # ┏━┓╻ ╻ ╻┏━╸╻┏┓╻┏━┓ # ┣━┛┃ ┃ ┃┃╺┓┃┃┗┫┗━┓ # ╹ ┗━╸┗━┛┗━┛╹╹ ╹┗━┛ cmp-nvim-lsp = (pkgs.vimPlugins.cmp-nvim-lsp.overrideAttrs (old: { src = pkgs.fetchFromGitHub { owner = "hrsh7th"; repo = "cmp-nvim-lsp"; rev = "f93a6cf9761b096ff2c28a4f0defe941a6ffffb5"; sha256 = "02x4jp79lll4fm34x7rjkimlx32gfp2jd1kl6zjwszbfg8wziwmx"; }; })); nvim-cmp = (pkgs.vimPlugins.nvim-cmp.overrideAttrs (old: { src = pkgs.fetchFromGitHub { owner = "hrsh7th"; repo = "nvim-cmp"; rev = "af70f40d2eb6db2121536c8df2e114af759df537"; sha256 = "1sv6hsfa1anax7dvp9h83m4z50kpg51fzvvmjb15jjfdih5zmcdb"; }; })); vim-skeleton = pkgs.vimUtils.buildVimPlugin { name = "vim-skeleton"; src = pkgs.fetchFromGitHub { owner = "noahfrederick"; repo = "vim-skeleton"; rev = "v0.5.0"; sha256 = "001fgylvfd1hnzh5cd1kp29yibim69psbz3358xv74b1va9f2dpp"; }; }; vim-sage = pkgs.vimUtils.buildVimPlugin { name = "vim-sage"; src = pkgs.fetchFromGitHub { owner = "petRUShka"; repo = "vim-sage"; rev = "702b29ea80f063f6c9080fefa4132226ea0ad664"; sha256 = "sha256-rXxLP09u2t21P/q3yAeZUglIns0Yc7SGKLQ/RxDrNqs="; }; }; # ┏┳┓┏━┓╻┏┓╻ # ┃┃┃┣━┫┃┃┗┫ # ╹ ╹╹ ╹╹╹ ╹ myneovim = (pkgs.neovim.override { configure = { customRC = pkgs.lib.readFile ./init.vim; packages.myVimPackages = with pkgs; with vimPlugins; { start = [ # Theme onedark-vim # Programming Language Specific stuff # Sage vim-sage # Nix vim-nix # Clojure vim-dispatch vim-dispatch-neovim vim-jack-in conjure vim-repeat vim-surround vim-sexp vim-sexp-mappings-for-regular-people # General help vim-slime vim-signify vim-css-color tabular vim-matchup delimitMate nvim-ts-rainbow fzf-vim vim-commentary vim-multiple-cursors which-key-nvim vim-skeleton (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars)) nvim-lspconfig # Completion cmp-nvim-lsp nvim-cmp cmp-buffer cmp-vsnip vim-vsnip cmp-path ]; opt = []; }; }; }); in { defaultPackage.x86_64-linux = pkgs.stdenv.mkDerivation rec { version = "0.1"; pname = "neovim-luca"; src = ./.; buildInputs = with pkgs; [ myneovim # ╻ ┏━┓┏┓╻┏━╸╻ ╻┏━┓┏━╸┏━╸ ┏━┓┏━╸┏━┓╻ ╻┏━╸┏━┓ # ┃ ┣━┫┃┗┫┃╺┓┃ ┃┣━┫┃╺┓┣╸ ┗━┓┣╸ ┣┳┛┃┏┛┣╸ ┣┳┛ # ┗━╸╹ ╹╹ ╹┗━┛┗━┛╹ ╹┗━┛┗━╸ ┗━┛┗━╸╹┗╸┗┛ ┗━╸╹┗╸ # LaTex texlab # Haskell haskell-language-server ormolu # JavaScript / Typescript nodePackages.javascript-typescript-langserver # NIX rnix-lsp # Python pyright # Rust rls # Clojure clojure-lsp # C clang-tools # ╺┳╸┏━┓┏━┓╻ ┏━┓ # ┃ ┃ ┃┃ ┃┃ ┗━┓ # ╹ ┗━┛┗━┛┗━╸┗━┛ fzf ripgrep bat toilet xclip ]; installPhase = '' mkdir -p $out/bin # this makes it possible for my neovim to be called using nvim # or vim inside of a terminal ln -sf ${myneovim}/bin/nvim $out/bin/neovim-luca ln -sf ${myneovim}/bin/nvim $out/bin/nvim ln -sf ${myneovim}/bin/nvim $out/bin/vim ''; meta = with pkgs.lib; { author = "Luca Leon Happel"; description = ""; homepage = "https://github.com/Quoteme/neovim-luca"; platforms = platforms.all; mainProgram = "neovim-luca"; }; }; # defaultApp.x86_64-linux = { type = "app"; program = "nvim"; }; }; }
nvim-jdtls
-
Having the worst time trying to use JDTLS
I recommend that you do not configure jdtls like the other language servers, it is better to use the nvim-jdtls plugin.
-
Noob here, would neovim work for my usecase
Java is actually pretty good with Neovim, jdtls and this plugin. One of the best language servers and I'm using it on a regular base with medium to large projects, mostly spring-based. No Android though.
-
Client 2 quit with exit code 1 and signal 0 when opening a .java files
-- See `:help vim.lsp.start_client` for an overview of the supported `config` options. local config = { -- The command that starts the language server -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line cmd = { -- 💀 'java', -- or '/path/to/java17_or_newer/bin/java' -- depends on if `java` is in your $PATH env variable and if it points to the right version. '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultStartLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.protocol=true', '-Dlog.level=ALL', '-Xmx1g', '--add-modules=ALL-SYSTEM', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', -- 💀 '-jar', '~/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar', -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ -- Must point to the Change this to -- eclipse.jdt.ls installation the actual version -- 💀 '-configuration', '~/.local/share/nvim/mason/packages/jdtls/config_linux', -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ -- Must point to the Change to one of `linux`, `win` or `mac` -- eclipse.jdt.ls installation Depending on your system. -- 💀 -- See `data directory configuration` section in the README '-data', '/path/to/unique/per/project/workspace/folder' }, -- 💀 -- This is the default if not provided, you can remove it. Or adjust as needed. -- One dedicated LSP server & client will be started per unique root_dir root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}), -- Here you can configure eclipse.jdt.ls specific settings -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request -- for a list of options settings = { java = { } }, -- Language server `initializationOptions` -- You need to extend the `bundles` with paths to jar files -- if you want to use additional eclipse.jdt.ls plugins. -- -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation -- -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this init_options = { bundles = {} }, } -- This starts a new client & server, -- or attaches to an existing client & server depending on the `root_dir`. require('jdtls').start_or_attach(config)
-
Foot – A fast, lightweight and minimalistic Wayland terminal emulator
I can get by with https://github.com/mfussenegger/nvim-jdtls
-
[HELP] ftplugin and lazy loading in NvChad
This and this provided no viable solutions for me
- Anyone using nvim for Kotlin development?
-
Help for configure jdtls
I tried to configure jdtls for my NeoVim I followed https://github.com/mfussenegger/nvim-jdtls install instruction. and I faced this error does anyone successfully configured jdtls ? help T ^ T
-
Adding JAR files to nvim-jdtls
Am I adding it to the wrong configuration option? Some places I see it added as a referencedLibary - https://github.com/mfussenegger/nvim-jdtls
-
Does anyone config java for neovim?
Sure. Any server that lspconfig supports will work. But for java development is better if you use nvim-jdtls. The documentation in lsp-zero has a guide on how to setup nvim-jdtls.
-
I can't seem to figure it out
Here' my java.lua for nvim-jdtls which solves the nil issue and add more features.
What are some alternatives?
flake-compat
nvim-lspconfig - Quickstart configs for Nvim LSP
vscode-java-debug - Java Debugger for Visual Studio Code.
eclipse.jdt.ls - Java language server
AutoHotkey_L - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows. [Moved to: https://github.com/AutoHotkey/AutoHotkey]
nvim-lsp-installer - Further development has moved to https://github.com/williamboman/mason.nvim!
coc-java - Java extension for coc.nvim
java-debug - The debug server implementation for Java. It conforms to the debug protocol of Visual Studio Code (DAP, Debugger Adapter Protocol).
mason.nvim - Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
lspsaga.nvim - improve neovim lsp experience [Moved to: https://github.com/nvimdev/lspsaga.nvim]
nvim-cmp - A completion plugin for neovim coded in Lua.