Skip to content
Discussion options

You must be logged in to vote

Generally you:

  1. go to plugin_spec.lua
    add a sample, for example to add nvim-java you would write
    { "nvim-java/nvim-java", ft = "java", config = function() require("java").setup {} require("lspconfig").jdtls.setup {} end, },

where the majority of the code is taken from the repo guide. while "ft" specify the filetype. This means this plugin is enabled and loaded only when a java file os opened. the second line is the repo creator and name

  1. go to lsp.lua (only if the plugin you need require an additional lsp (language server protocol)
  • make sure you have it installed in the system. I use nix and the package name in nix is "jdt-language-server". You also need to install java-test, in nix i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SamFighter
Comment options

Answer selected by SamFighter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants