astrolsp: disable autoformat for java

This commit is contained in:
Paul Campbell 2024-09-10 10:02:07 +01:00
parent a615daab17
commit 3bbf5b6a9d

View file

@ -12,7 +12,7 @@ return {
opts = {
-- Configuration table of features provided by AstroLSP
features = {
autoformat = true, -- enable or disable auto formatting on start
autoformat = false, -- enable or disable auto formatting on start
codelens = true, -- enable/disable codelens refresh on start
inlay_hints = false, -- enable/disable inlay hints on start
semantic_tokens = true, -- enable/disable semantic token highlighting
@ -23,9 +23,11 @@ return {
format_on_save = {
enabled = true, -- enable or disable format on save globally
allow_filetypes = { -- enable format on save for specified filetypes only
"rust",
-- "go",
},
ignore_filetypes = { -- disable format on save for specified filetypes
"java",
-- "python",
},
},