add java organize imports shortcut

This commit is contained in:
LordMZTE 2023-05-27 21:42:24 +02:00
parent c9698b81b3
commit 33727e27aa
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -9,12 +9,13 @@
(local (bundle-info dirs) (values (mztenv.getBundleInfo) (mztenv.getDirs)))
(fn on-attach [client _]
(fn on-attach [client bufnr]
;; formatting is handled by clang-format
(set client.server_capabilities.documentFormattingProvider false)
;; java lsp has shit highlights
(set client.server_capabilities.semanticTokensProvider false)
(jdtls-setup.add_commands)
(vim.keymap.set :n :FI jdtls.organize_imports {:buffer bufnr})
(jdtls.setup_dap {:hotcodereplace :auto}))
;; Deshittify pick UI