diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 9adcddee..1d3e0491 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -26,7 +26,6 @@ [yanky.nvim]: https://github.com/gbprod/yanky.nvim [yazi.nvim]: https://github.com/mikavilpas/yazi.nvim [snacks.nvim]: https://github.com/folke/snacks.nvim -[oil.nvim]: https://github.com/stevearc/oil.nvim - Add [typst-preview.nvim] under `languages.typst.extensions.typst-preview-nvim`. @@ -84,9 +83,6 @@ - Lazyload Lspsaga and remove default keybindings for it. -- Add [oil.nvim] as an alternative file explorer. It will be available under - `vim.utility.oil-nvim`. - [amadaluzia](https://github.com/amadaluzia): [haskell-tools.nvim]: https://github.com/MrcJkb/haskell-tools.nvim diff --git a/modules/plugins/completion/blink-cmp/blink-cmp.nix b/modules/plugins/completion/blink-cmp/blink-cmp.nix index 65b88815..f5e38ed1 100644 --- a/modules/plugins/completion/blink-cmp/blink-cmp.nix +++ b/modules/plugins/completion/blink-cmp/blink-cmp.nix @@ -43,6 +43,19 @@ in { default = {}; description = "Settings for completion providers."; }; + + transform_items = mkOption { + type = nullOr luaInline; + default = mkLuaInline "function(_, items) return items end"; + defaultText = '' + Our default does nothing. If you want blink.cmp's default, which + lowers the score for snippets, set this option to null. + ''; + description = '' + Function to use when transforming the items before they're returned + for all providers. + ''; + }; }; cmdline = { diff --git a/modules/plugins/utility/default.nix b/modules/plugins/utility/default.nix index 62b07574..cbe776cc 100644 --- a/modules/plugins/utility/default.nix +++ b/modules/plugins/utility/default.nix @@ -15,7 +15,6 @@ ./multicursors ./new-file-template ./nix-develop - ./oil-nvim ./outline ./preview ./snacks-nvim diff --git a/modules/plugins/utility/oil-nvim/config.nix b/modules/plugins/utility/oil-nvim/config.nix deleted file mode 100644 index 46f49112..00000000 --- a/modules/plugins/utility/oil-nvim/config.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - config, - lib, - ... -}: let - inherit (lib.modules) mkIf; - inherit (lib.nvim.lua) toLuaObject; - inherit (lib.nvim.dag) entryAnywhere; - - cfg = config.vim.utility.oil-nvim; -in { - config = mkIf cfg.enable { - vim = { - startPlugins = ["oil-nvim"]; - pluginRC.snacks-nvim = entryAnywhere '' - require("oil").setup(${toLuaObject cfg.setupOpts}); - ''; - }; - }; -} diff --git a/modules/plugins/utility/oil-nvim/default.nix b/modules/plugins/utility/oil-nvim/default.nix deleted file mode 100644 index 1b771b07..00000000 --- a/modules/plugins/utility/oil-nvim/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - imports = [ - ./config.nix - ./oil-nvim.nix - ]; -} diff --git a/modules/plugins/utility/oil-nvim/oil-nvim.nix b/modules/plugins/utility/oil-nvim/oil-nvim.nix deleted file mode 100644 index 557f3db6..00000000 --- a/modules/plugins/utility/oil-nvim/oil-nvim.nix +++ /dev/null @@ -1,12 +0,0 @@ -{lib, ...}: let - inherit (lib.options) mkEnableOption; - inherit (lib.nvim.types) mkPluginSetupOption; -in { - options.vim.utility.oil-nvim = { - enable = mkEnableOption '' - Neovim file explorer: edit your filesystem like a buffer [oil-nvim] - ''; - - setupOpts = mkPluginSetupOption "oil-nvim" {}; - }; -} diff --git a/npins/sources.json b/npins/sources.json index a1388f6f..f9091f20 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -1919,19 +1919,6 @@ "url": "https://github.com/epwalsh/obsidian.nvim/archive/14e0427bef6c55da0d63f9a313fd9941be3a2479.tar.gz", "hash": "15ycmhn48ryaqzch6w3w6llq2qgmjx8xwkb9dn0075z60dybpflr" }, - "oil-nvim": { - "type": "Git", - "repository": { - "type": "GitHub", - "owner": "stevearc", - "repo": "oil.nvim" - }, - "branch": "master", - "submodules": false, - "revision": "ab887d926c2665a708fbe9e6c4654042cc5f4c60", - "url": "https://github.com/stevearc/oil.nvim/archive/ab887d926c2665a708fbe9e6c4654042cc5f4c60.tar.gz", - "hash": "13jp8i11yhl9xjki3pcyr1q1gzskskm2fgb3slrwfphn586jb5i6" - }, "omnisharp-extended-lsp-nvim": { "type": "Git", "repository": {