Initial configuration

- LSP
- Relative Numbers

**Plugins**
- Conform (Formatter)
- GitHub Copilot
This commit is contained in:
Gerardo Torres 2024-01-02 11:42:43 -04:00
parent 3824342d10
commit a9739a6862
4 changed files with 72 additions and 2 deletions

View file

@ -0,0 +1,31 @@
-- **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" } },
},
},
},
}