Add easyalign

This commit is contained in:
2024-11-22 08:39:59 +01:00
parent f0bc3e37df
commit 2724b2ac2a
3 changed files with 23 additions and 14 deletions

View File

@@ -1,10 +1,10 @@
require "nvchad.mappings"
-- add yours here
local map = vim.keymap.set
map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
-- Easy-align mappings
map("x", "ga", "<Plug>(EasyAlign)", { silent = true })
map("n", "ga", "<Plug>(EasyAlign)", { silent = true })

View File

@@ -1,7 +1,16 @@
return {
{
"junegunn/vim-easy-align",
lazy = false, -- Load the plugin immediately
keys = {
-- Custom keymappings for easy-align
{ "ga", "<Plug>(EasyAlign)", mode = { "n", "x" }, desc = "Easy Align" }
},
},
{
"charludo/projectmgr.nvim",
lazy = false, -- Required for proper functionality
lazy = false,
},
{