From d083b4d0b511d78a98ceae491213373b9587fba7 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 1 Mar 2024 18:10:42 +0800 Subject: [PATCH] nixvim/plugins/smart-splits: remove It has been upstreamed in NixVim so that's a-go-go. --- modules/nixvim/default.nix | 1 - modules/nixvim/plugins/smart-splits.nix | 37 ------------------------- 2 files changed, 38 deletions(-) delete mode 100644 modules/nixvim/plugins/smart-splits.nix diff --git a/modules/nixvim/default.nix b/modules/nixvim/default.nix index 8cbae499..ba914da3 100644 --- a/modules/nixvim/default.nix +++ b/modules/nixvim/default.nix @@ -6,6 +6,5 @@ ./plugins/lush-nvim.nix ./plugins/legendary-nvim.nix ./plugins/nvim-config-local.nix - ./plugins/smart-splits.nix ]; } diff --git a/modules/nixvim/plugins/smart-splits.nix b/modules/nixvim/plugins/smart-splits.nix deleted file mode 100644 index 26ab799a..00000000 --- a/modules/nixvim/plugins/smart-splits.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, helpers, ... }: - -let - cfg = config.plugins.smart-splits; -in -{ - options.plugins.smart-splits = { - enable = lib.mkEnableOption "smart-splits.nvim"; - - package = helpers.mkPackageOption "smart-splits.nvim" pkgs.vimPlugins.smart-splits-nvim; - - settings = lib.mkOption { - type = with lib.types; attrsOf anything; - default = { }; - description = '' - Configuration to be passed as argument to `setup` function of the - plugin. - ''; - example = { - resize_mode = { - quit_key = ""; - resize_keys = [ "h" "j" "k" "l" ]; - silent = true; - }; - ignored_events = [ "BufEnter" "WinEnter" ]; - }; - }; - }; - - config = lib.mkIf cfg.enable { - extraPlugins = [ cfg.package ]; - - extraConfigLua = '' - require('smart-splits').setup(${helpers.toLuaObject cfg.settings}) - ''; - }; -}