feat: Reworking nvim configuration

This commit is contained in:
2024-12-20 09:48:54 -05:00
parent 876e7f6d0e
commit 6cdf85b4e3
13 changed files with 426 additions and 567 deletions

View File

@@ -1,7 +1,19 @@
return {
"mhartington/formatter.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function()
keys = {
{
"<leader>f",
":Format",
desc = "[F]ormat",
},
{
"<leader>F",
":FormatWrite",
desc = "[F]ormat write",
},
},
config = function(_, opts)
local util = require("formatter.util")
require("formatter").setup({
filetype = {
@@ -50,13 +62,6 @@ return {
},
})
-- Keymaps
local wk = require("which-key")
wk.add({
{ "<space>f", ":Format", desc = "[F]ormat" },
{ "<space>F", ":FormateWrite", desc = "[F]ormat write" },
}, { mode = "n", silent = true })
local augroup = vim.api.nvim_create_augroup
local autocmd = vim.api.nvim_create_autocmd