summaryrefslogtreecommitdiff
path: root/lua/config/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/plugins')
-rw-r--r--lua/config/plugins/completion.lua5
-rw-r--r--lua/config/plugins/mini.lua29
2 files changed, 23 insertions, 11 deletions
diff --git a/lua/config/plugins/completion.lua b/lua/config/plugins/completion.lua
index 0bcf7ad..7a02809 100644
--- a/lua/config/plugins/completion.lua
+++ b/lua/config/plugins/completion.lua
@@ -25,7 +25,10 @@ return {
},
keymap = {
- ["<S-space>"] = { "show", "show_documentation", "hide_documentation" },
+ -- TODO: come up with more convenient keybinding
+ -- ["<S-space>"] = { "show", "show_documentation", "hide_documentation" },
+
+ ["<M-->"] = { "show", "show_documentation", "hide_documentation" },
["<C-e>"] = { "hide", "fallback" },
["<CR>"] = { "accept", "fallback" },
diff --git a/lua/config/plugins/mini.lua b/lua/config/plugins/mini.lua
index 9160744..cb73945 100644
--- a/lua/config/plugins/mini.lua
+++ b/lua/config/plugins/mini.lua
@@ -49,16 +49,25 @@ return {
})
end,
},
- -- NOTE: keybindings are intersecting with smart-splits.nvim
- -- In the future I will fix it
- --
- -- {
- -- "mini.move",
- -- event = "DeferredUIEnter",
- -- after = function(_)
- -- require("mini.move").setup()
- -- end,
- -- },
+ {
+ "mini.move",
+ event = "DeferredUIEnter",
+ after = function(_)
+ require("mini.move").setup({
+ mappings = {
+ line_left = "<C-h>",
+ line_down = "<C-j>",
+ line_up = "<C-k>",
+ line_right = "<C-l>",
+
+ left = "<C-h>",
+ down = "<C-j>",
+ up = "<C-k>",
+ right = "<C-l>",
+ },
+ })
+ end,
+ },
{
"mini.pairs",
event = "DeferredUIEnter",