From 3bbf5b6a9df5284286d006bec9417c9c4c572d7e Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 10 Sep 2024 10:02:07 +0100 Subject: [PATCH] astrolsp: disable autoformat for java --- lua/plugins/astrolsp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index 1125404..f30562d 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -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", }, },