-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
28 lines (25 loc) · 935 Bytes
/
init.lua
File metadata and controls
28 lines (25 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
vim.pack.add({
'https://github.com/nvim-java/nvim-java-test',
'https://github.com/mason-org/mason.nvim',
'https://github.com/nvim-java/nvim-java-core',
'https://github.com/nvim-java/lua-async-await',
'https://github.com/nvim-java/nvim-java-refactor',
'https://github.com/nvim-java/nvim-java-dap',
'https://github.com/MunifTanjim/nui.nvim',
'https://github.com/neovim/nvim-lspconfig',
'https://github.com/mfussenegger/nvim-dap',
'https://github.com/JavaHello/spring-boot.nvim',
'https://github.com/nvim-java/nvim-java',
})
require('mason').setup()
require('java').setup({ jdk = { auto_install = false } })
require('lspconfig').jdtls.setup({})
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
-- stylua: ignore
vim.lsp.completion.enable( true, ev.data.client_id, ev.buf, { autotrigger = true })
end,
})
vim.opt.completeopt = { 'menuone', 'noselect', 'popup' }
vim.o.tabstop = 2
vim.o.shiftwidth = 2