Create setup_handlers.lua

pull/11/head
Platon3 2024-04-02 16:00:56 -05:00 committed by GitHub
parent a52fcde0cd
commit 445120eaeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
return {
clangd = function(_, opts) require("clangd_extensions").setup { server = opts } end,
jdtls = function(_, opts)
vim.api.nvim_create_autocmd("Filetype", {
pattern = "java", -- autocmd to start jdtls
callback = function()
if opts.root_dir and opts.root_dir ~= "" then require("jdtls").start_or_attach(opts) end
end,
})
end,
}