-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * fix style --------- Co-authored-by: Micah Halter <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
9 changes: 9 additions & 0 deletions
9
lua/astrocommunity/editing-support/cutlass-nvim/cutlass-nvim.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |