making my nvim config modular

This commit is contained in:
judokasarin 2024-03-09 14:30:36 +05:30
parent d93d8dd49f
commit 28d630d239
13 changed files with 655 additions and 680 deletions

View file

@ -0,0 +1,19 @@
return { -- Autoformat
'stevearc/conform.nvim',
opts = {
notify_on_error = false,
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
formatters_by_ft = {
lua = { 'stylua' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--
-- You can use a sub-list to tell conform to run *until* a formatter
-- is found.
javascript = { { "prettier" } },
},
},
}