mirror of
https://github.com/eRgo35/neovim.git
synced 2026-02-04 05:46:10 +01:00
feat: format on save
This commit is contained in:
@@ -5,11 +5,11 @@ local options = {
|
|||||||
-- html = { "prettier" },
|
-- html = { "prettier" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- format_on_save = {
|
format_on_save = {
|
||||||
-- -- These options will be passed to conform.format()
|
-- These options will be passed to conform.format()
|
||||||
-- timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
-- lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
-- },
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
-- event = 'BufWritePre', -- uncomment for format on save
|
event = "BufWritePre", -- uncomment for format on save
|
||||||
opts = require "configs.conform",
|
opts = require "configs.conform",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user