From 3cad3d2fb03ba1841a275ae56c09ad7e589a2324 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 8 Mar 2023 18:14:52 -0500 Subject: [PATCH] bring back tabularize to neovim config --- modules/common/neovim/config/align.nix | 9 +++++++++ modules/common/neovim/package/default.nix | 1 + 2 files changed, 10 insertions(+) create mode 100644 modules/common/neovim/config/align.nix 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