mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-16 06:52:10 +01:00
add java organize imports shortcut
This commit is contained in:
parent
c9698b81b3
commit
33727e27aa
1 changed files with 2 additions and 1 deletions
|
@ -9,12 +9,13 @@
|
||||||
|
|
||||||
(local (bundle-info dirs) (values (mztenv.getBundleInfo) (mztenv.getDirs)))
|
(local (bundle-info dirs) (values (mztenv.getBundleInfo) (mztenv.getDirs)))
|
||||||
|
|
||||||
(fn on-attach [client _]
|
(fn on-attach [client bufnr]
|
||||||
;; formatting is handled by clang-format
|
;; formatting is handled by clang-format
|
||||||
(set client.server_capabilities.documentFormattingProvider false)
|
(set client.server_capabilities.documentFormattingProvider false)
|
||||||
;; java lsp has shit highlights
|
;; java lsp has shit highlights
|
||||||
(set client.server_capabilities.semanticTokensProvider false)
|
(set client.server_capabilities.semanticTokensProvider false)
|
||||||
(jdtls-setup.add_commands)
|
(jdtls-setup.add_commands)
|
||||||
|
(vim.keymap.set :n :FI jdtls.organize_imports {:buffer bufnr})
|
||||||
(jdtls.setup_dap {:hotcodereplace :auto}))
|
(jdtls.setup_dap {:hotcodereplace :auto}))
|
||||||
|
|
||||||
;; Deshittify pick UI
|
;; Deshittify pick UI
|
||||||
|
|
Loading…
Reference in a new issue