- removed hindering material like nvim adding more comments upon pressing `Enter` - removed snippets, not needed + disrupted commenting - added more keybinds (telescope.nvim, wrap around pairs, venv selection) - added QOL changes like venv-selector + ecolog.nvim w/ - added blink.cmp provders (ecolog + convential commits)
29 lines
638 B
Lua
Executable file
29 lines
638 B
Lua
Executable file
-- Formatter plugin, helps with formatting code on saving the file.
|
|
|
|
return {
|
|
"stevearc/conform.nvim",
|
|
event = { "BufWritePre" },
|
|
cmd = { "ConformInfo" },
|
|
|
|
opts = {
|
|
formatters_by_ft = {
|
|
lua = { "stylua" },
|
|
python = { "black" },
|
|
javascript = { "prettier" }, -- add stop_after_first for n > 1
|
|
typescript = { "prettier" },
|
|
sh = { "shfmt", "shellcheck" },
|
|
bash = { "shfmt", "shellcheck" },
|
|
},
|
|
default_format_opts = {
|
|
lsp_format = "fallback",
|
|
},
|
|
format_on_save = {
|
|
timeout_ms = 500,
|
|
lsp_format = "fallback"
|
|
}
|
|
},
|
|
|
|
init = function()
|
|
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
|
end,
|
|
}
|