feat: add simple java support
This commit is contained in:
8
init.lua
8
init.lua
@@ -27,6 +27,9 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/terrortylor/nvim-comment" },
|
{ src = "https://github.com/terrortylor/nvim-comment" },
|
||||||
-- required by nvim-comment
|
-- required by nvim-comment
|
||||||
{ src = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" },
|
{ src = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" },
|
||||||
|
|
||||||
|
-- java support
|
||||||
|
{ src = "https://github.com/mfussenegger/nvim-jdtls" }
|
||||||
})
|
})
|
||||||
|
|
||||||
require('nvim_comment').setup({
|
require('nvim_comment').setup({
|
||||||
@@ -118,7 +121,10 @@ vim.lsp.config('lua_ls', {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
vim.lsp.enable({ "lua_ls", "gopls", "templ", "ts_ls", "tailwindcss" })
|
vim.lsp.config('jdtls', {
|
||||||
|
cmd = { "jdtls", "--jvm-arg=-javaagent:/usr/share/java/lombok/lombok.jar" }
|
||||||
|
})
|
||||||
|
vim.lsp.enable({ "lua_ls", "gopls", "templ", "ts_ls", "tailwindcss", "bashls", "jdtls" })
|
||||||
|
|
||||||
-- Enables filtered completions for tailwindcss class names, e.g. "mt-<C-n>".
|
-- Enables filtered completions for tailwindcss class names, e.g. "mt-<C-n>".
|
||||||
-- Otherwise the completion contains EVERYTHING
|
-- Otherwise the completion contains EVERYTHING
|
||||||
|
|||||||
Reference in New Issue
Block a user