nvim: add easy-align
change vwwyuzoxmvutnonwlponpsmmnrplytws
commit fdecc9c36474e4bc5942f66f6f12bb7afe55075f
author Alpha Chen <alpha@kejadlen.dev>
date
parent umunplon
diff --git a/.config/nvim/fnl/init.fnl b/.config/nvim/fnl/init.fnl
index 9bf21dfb..8e9c8aa0 100644
--- a/.config/nvim/fnl/init.fnl
+++ b/.config/nvim/fnl/init.fnl
@@ -127,6 +127,8 @@
                {:src "https://github.com/j-hui/fidget.nvim.git"
                 :version :v2.0.0}
                {:src "https://github.com/junegunn/fzf.git" :version :v0.74.0}
+               {:src "https://github.com/junegunn/vim-easy-align.git"
+                :version :2.10.0}
                "https://github.com/junegunn/fzf.vim.git"
                {:src "https://github.com/lukas-reineke/indent-blankline.nvim.git"
                 :version :v3.10.1}
@@ -243,8 +245,9 @@
 ;; indent-blankline
 (let [{: setup} (require :ibl)] (setup))
 
-;; mini.align
-; (let [{: setup} (require :mini.align)] (setup))
+;; easy-align
+(vim.keymap.set :x :ga "<Plug>(EasyAlign)")
+(vim.keymap.set :n :ga "<Plug>(EasyAlign)")
 
 ;;; generate help files
 
diff --git a/.config/nvim/nvim-pack-lock.json b/.config/nvim/nvim-pack-lock.json
index 08e4ff09..05e0a369 100644
--- a/.config/nvim/nvim-pack-lock.json
+++ b/.config/nvim/nvim-pack-lock.json
@@ -67,6 +67,11 @@
       "rev": "a2ff28a",
       "src": "https://github.com/tpope/vim-dispatch.git"
     },
+    "vim-easy-align": {
+      "rev": "0db4ea6132110631ec678a99a82aa49a0686ae65",
+      "src": "https://github.com/junegunn/vim-easy-align.git",
+      "version": "'2.10.0'"
+    },
     "vim-fennel": {
       "rev": "cb93482",
       "src": "https://github.com/atweiden/vim-fennel.git"