idk
This commit is contained in:
parent
63270ea85c
commit
95ec24012d
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
|
@ -974,7 +974,7 @@ require("lazy").setup({
|
|||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||
-- have a well standardized coding style. You can add additional
|
||||
-- languages here or re-enable it for the disabled ones.
|
||||
local disable_filetypes = { c = true, cpp = true, pyright = true, python = true }
|
||||
local disable_filetypes = { c = true, cpp = true, pyright = true, python = true, html = true }
|
||||
local lsp_format_opt
|
||||
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||
lsp_format_opt = "never"
|
||||
|
|
@ -994,7 +994,7 @@ require("lazy").setup({
|
|||
-- python = { "isort", "black" },
|
||||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue