summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-05 11:49:18 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-05 11:49:18 +0200
commitb9690e31d15a6b9bc97c80a567a7fc02cd8f8849 (patch)
tree8c822efcf9c0dc4f15dc67205ba06f3a93327a7d
parent62b8c01ef02da8f83ab496595312875d29542473 (diff)
Add stay-in-place plugin
-rw-r--r--fnl/config/init.fnl1
-rw-r--r--fnl/config/stay-in-place.fnl4
-rw-r--r--fnl/plugins.fnl1
3 files changed, 6 insertions, 0 deletions
diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl
index 9b1fb5e..4fe4484 100644
--- a/fnl/config/init.fnl
+++ b/fnl/config/init.fnl
@@ -28,4 +28,5 @@
config.zen
config.minibar
config.surround
+ config.stay-in-place
config.lsp]})
diff --git a/fnl/config/stay-in-place.fnl b/fnl/config/stay-in-place.fnl
new file mode 100644
index 0000000..9136fdf
--- /dev/null
+++ b/fnl/config/stay-in-place.fnl
@@ -0,0 +1,4 @@
+;; Prevent the cursor from moving when using shift and filter actions.
+(module config.stay-in-place {autoload {: util}})
+
+(util.use-config :stay-in-place {})
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl
index 59b7197..97e0552 100644
--- a/fnl/plugins.fnl
+++ b/fnl/plugins.fnl
@@ -55,4 +55,5 @@
:williamboman/mason.nvim {}
:williamboman/mason-lspconfig.nvim {}
:s1n7ax/nvim-window-picker {}
+ :gbprod/stay-in-place.nvim {}
:kylechui/nvim-surround {}}