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