moved plugins to kickstart/plugins and need to require it in init.lua

This commit is contained in:
Sarjyant 2024-09-19 21:03:14 +05:45
parent c0142dd97f
commit b195b6271b
10 changed files with 15 additions and 8 deletions

View file

@ -0,0 +1,30 @@
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 will run multiple formatters sequentially
-- go = { 'goimports', 'gofmt' },
python = function(bufnr)
if require('conform').get_formatter_info('ruff_format', bufnr).available then
return { 'ruff_format' }
else
return { 'isort', 'black' }
end
end,
-- Replace nested brackets with separate formatters and `stop_after_first`
javascript = { 'prettierd', 'prettier' },
javascriptreact = { 'prettierd', 'prettier' },
['*'] = { 'trim_whitespace' },
},
-- stop_after_first = true,
},
},
}