Skip to content

Commit

Permalink
Neovim configs
Browse files Browse the repository at this point in the history
  • Loading branch information
szaffarano committed Dec 20, 2023
1 parent ab8eb1f commit 20988b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
7 changes: 0 additions & 7 deletions modules/home-manager/neovim/autocommands.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
command = "norm zz";
}

# Remove trailing whitespace on save
{
event = "BufWrite";
# command = "%s/\\s\\+$//e|''";
command = "%s/\\s\\+$//e|norm!``";
}

# Open help in a vertical split
{
event = "FileType";
Expand Down
12 changes: 3 additions & 9 deletions modules/home-manager/neovim/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
./oil.nix
./orgmode.nix
./telescope.nix
./toggleterm.nix
./treesitter.nix
./wiki-vim.nix
./which-key.nix
./wiki-vim.nix
];

# TODO:
Expand All @@ -31,18 +32,11 @@

nvim-autopairs.enable = true;

nvim-colorizer = {
enable = true;
userDefaultOptions.names = false;
};

lastplace.enable = true;
};

extraPlugins = with pkgs.vimPlugins; [
vim-sleuth # manage shiftwitd and expand tab automagically
vim-gnupg # transparent gpg encryption
neoformat # TODO: is it still needed?
vim-gnupg
];
};
}
6 changes: 6 additions & 0 deletions modules/home-manager/neovim/plugins/toggleterm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
programs.nixvim.plugins.toggleterm = {
enable = true;
openMapping = "<C-t>";
};
}

0 comments on commit 20988b8

Please sign in to comment.