neovim

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 512a2e7ac08680597c69b210090300895cad033b
parent 7296c108bcc8515379f36d3d15f84970704f8b55
Author: bdmfegys@duck.com <bdmfegys@duck.com>
Date:   Tue, 30 Apr 2024 18:20:31 -0400

plugins.lua: simplified conform.nvim config; add markdown, css, html, c and lua support

Diffstat:
Mlua/plugins.lua | 18+++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/lua/plugins.lua b/lua/plugins.lua @@ -4,10 +4,21 @@ require("lazy").setup({ event = { "VeryLazy" }, cmd = { "ConformInfo" }, opts = { + lang_to_ext = { + c = "c", + lua = "lua", + html = "html", + markdown = "md", + css = "css", + }, formatters_by_ft = { - lua = { "stylua" }, - c = { "clang-format" }, + c = { "ast-grep" }, + lua = { "ast-grep" }, + html = { "ast-grep" }, + css = { "ast-grep" }, + markdown = { "mdformat" }, }, + --format_on_save = { timeout_ms = 500, lsp_fallback = true }, }, init = function() vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" @@ -42,10 +53,7 @@ require("lazy").setup({ build = ":MasonUpdate", opts = { ensure_installed = { - "stylua", - "shfmt", "ast-grep", - "prettier", }, }, ---@param opts MasonSettings | {ensure_installed: string[]}