diff --git a/modules/common/neovim/config/align.nix b/modules/common/neovim/config/align.nix new file mode 100644 index 0000000..37abafe --- /dev/null +++ b/modules/common/neovim/config/align.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: { + plugins = [ pkgs.vimPlugins.tabular ]; + lua = '' + -- Align + vim.keymap.set("", "ta", ":Tabularize /") + vim.keymap.set("", "t#", ":Tabularize /#") + vim.keymap.set("", "tl", ":Tabularize /---") + ''; +} diff --git a/modules/common/neovim/package/default.nix b/modules/common/neovim/package/default.nix index f0991c1..a39767f 100644 --- a/modules/common/neovim/package/default.nix +++ b/modules/common/neovim/package/default.nix @@ -31,6 +31,7 @@ pkgs.neovimBuilder { package = pkgs.neovim-unwrapped; imports = [ + ../config/align.nix ../config/bufferline.nix ../config/completion.nix ../config/gitsigns.nix