dotfiles/modules/common/neovim/config/align.nix
2024-04-20 09:42:06 -04:00

14 lines
312 B
Nix

{ pkgs, ... }:
{
# Plugin for aligning text programmatically
plugins = [ pkgs.vimPlugins.tabular ];
lua = ''
-- Align
vim.keymap.set("", "<Leader>ta", ":Tabularize /")
vim.keymap.set("", "<Leader>t#", ":Tabularize /#<CR>")
vim.keymap.set("", "<Leader>tl", ":Tabularize /---<CR>")
'';
}