chore(nvim): more useful keymaps

main
sudo pacman -Syu 2023-10-03 12:48:54 +07:00
parent 721d2a1237
commit 4736f0de88
1 changed files with 18 additions and 2 deletions

View File

@ -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 = "<C-Space>",
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 = "<M-l>",
next = "<M-Space>",
prev = "<Nop>",
dismiss = "<Nop>",
},
},
filetypes = {
["."] = false,