From afbbfeaa7d9d36b2ebe4a428ef8490d54e4b67da Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 29 Oct 2024 04:25:31 +0100 Subject: Configure vim plugins and add tools Signed-off-by: Mel --- modules/vim.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/vim.nix (limited to 'modules/vim.nix') diff --git a/modules/vim.nix b/modules/vim.nix new file mode 100644 index 0000000..a511bc1 --- /dev/null +++ b/modules/vim.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: + +let + vim-configured = + with pkgs; + vim-full.customize { + name = "vim"; # explicitly replace vim + + vimrcConfig = { + customRC = builtins.readFile ../configs/.vimrc; + + packages.collection = with vimPlugins; { + start = [ + YouCompleteMe + fzf-vim + vim-easymotion + vim-sleuth + vim-better-whitespace + vim-tmux-navigator + ]; + + opt = [ ]; + }; + }; + }; + +in +{ + programs.vim = { + defaultEditor = true; + + package = vim-configured; + }; +} -- cgit 1.4.1