Skip to content

Kickstart

Srinesh Nisala edited this page Jul 2, 2024 · 2 revisions

Install nvim-java on Kickstart

We have this repository that's preconfigured for java development. You can directly clone the repository and personalize from there.

Instruction to Setup

  • Install nvim-java plugin
'nvim-java/nvim-java'
  • Add jdtls setup function to mason-lspconfig setup handlers
jdtls = function()
  require('java').setup {
    -- Your custom jdtls settings goes here
  }

  require('lspconfig').jdtls.setup {
    -- Your custom nvim-java configuration goes here
  }
end
  • Add java treesitter parser to ensure_installed list
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc', 'java' },
  • Enable debugging by uncommenting following line
-- require 'kickstart.plugins.debug',
Clone this wiki locally