Skip to content

Commit

Permalink
feat(editing-support): add cutlass-nvim (#174)
Browse files Browse the repository at this point in the history
* feat(editing-support): add cutlass-nvim

* refactor(editing-support): simplify list_insert_unique usages

Co-authored-by: Micah Halter <micah@mehalter.com>

* fix style

---------

Co-authored-by: Micah Halter <micah@mehalter.com>
  • Loading branch information
owittek and mehalter committed May 1, 2023
1 parent 50b3c0b commit c39ae53
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/astrocommunity/editing-support/cutlass-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# cutlass.nvim

**Repository:** <https://github.com/gbprod/cutlass.nvim>

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.
Original file line number Diff line number Diff line change
@@ -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,
}

0 comments on commit c39ae53

Please sign in to comment.