dotfiles/modules/common/neovim/config/align.nix

13 lines
312 B
Nix
Raw Permalink Normal View History

2023-03-08 23:14:52 +00:00
{ pkgs, ... }: {
2023-07-30 03:56:41 +00:00
# Plugin for aligning text programmatically
2023-03-08 23:14:52 +00:00
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>")
'';
}