astrolsp: disable autoformat for java
This commit is contained in:
parent
a615daab17
commit
3bbf5b6a9d
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue