From c39ae5337e6da09cf9035ac610f709f8a1249573 Mon Sep 17 00:00:00 2001 From: Oli <57495944+owittek@users.noreply.github.com> Date: Mon, 1 May 2023 20:00:55 +0200 Subject: [PATCH] feat(editing-support): add cutlass-nvim (#174) * feat(editing-support): add cutlass-nvim * refactor(editing-support): simplify list_insert_unique usages Co-authored-by: Micah Halter * fix style --------- Co-authored-by: Micah Halter --- .../editing-support/cutlass-nvim/README.md | 7 +++++++ .../editing-support/cutlass-nvim/cutlass-nvim.lua | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 lua/astrocommunity/editing-support/cutlass-nvim/README.md create mode 100644 lua/astrocommunity/editing-support/cutlass-nvim/cutlass-nvim.lua diff --git a/lua/astrocommunity/editing-support/cutlass-nvim/README.md b/lua/astrocommunity/editing-support/cutlass-nvim/README.md new file mode 100644 index 000000000..0a0aff00b --- /dev/null +++ b/lua/astrocommunity/editing-support/cutlass-nvim/README.md @@ -0,0 +1,7 @@ +# cutlass.nvim + +**Repository:** + +Cutlass overrides the delete operations to actually just delete and not affect the current yank. + +This plugin also adds the `leap.nvim` integration if the plugin is present. diff --git a/lua/astrocommunity/editing-support/cutlass-nvim/cutlass-nvim.lua b/lua/astrocommunity/editing-support/cutlass-nvim/cutlass-nvim.lua new file mode 100644 index 000000000..6357a4ffb --- /dev/null +++ b/lua/astrocommunity/editing-support/cutlass-nvim/cutlass-nvim.lua @@ -0,0 +1,9 @@ +local utils = require "astronvim.utils" + +return { + "gbprod/cutlass.nvim", + event = { "User AstroFile" }, + opts = function(_, opts) + if utils.is_available "leap.nvim" then opts.exclude = utils.list_insert_unique(opts.exclude, { "ns", "nS" }) end + end, +}