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

14 lines
312 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +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>")
'';
}