Gerardo Torres a9739a6862 Initial configuration
- LSP
- Relative Numbers

**Plugins**
- Conform (Formatter)
- GitHub Copilot
2024-01-02 11:42:43 -04:00

32 lines
809 B
Lua

-- **conform.nvim**
-- This nvim plugin allows to format any buffer with a single command.
-- Plugin page: https://github.com/stevearc/conform.nvim
return {
{
'stevearc/conform.nvim',
event = { "BufWritePre" },
cmd = { "ConformInfo" },
keys = {
{
-- Customize or remove this keymap to your liking
"<leader>f",
function()
require("conform").format({ async = true, lsp_fallback = true })
end,
mode = "",
desc = "Format buffer",
},
},
opts = {
-- Define your formatters
formatters_by_ft = {
javascript = { { "prettier" } },
typescript = { { "prettier" } },
html = { { "prettier" } },
css = { { "prettier" } },
sql = { { "sql_formatter" } },
},
},
},
}