From 4736f0de889c74d589a4014d881c0bce5d6a48a5 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 3 Oct 2023 12:48:54 +0700 Subject: [PATCH] chore(nvim): more useful keymaps --- data/nvim/init.lua | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 7b64e12..0d3d5a0 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -405,7 +405,16 @@ require("lazy").setup({ require("mini.comment").setup() -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-completion.md - require("mini.completion").setup() + require("mini.completion").setup({ + window = { + info = { height = 8, width = 40, border = "none" }, + signature = { height = 8, width = 40, border = "none" }, + }, + mappings = { + force_twostep = "", + force_fallback = "", + }, + }) -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-cursorword.md require("mini.cursorword").setup() @@ -547,7 +556,14 @@ require("lazy").setup({ enabled = false, }, suggestion = { - enabled = false, + enabled = true, + auto_trigger = false, + keymap = { + accept = "", + next = "", + prev = "", + dismiss = "", + }, }, filetypes = { ["."] = false,