diff options
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/mini-completion.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/mini-completion.lua | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/mini-completion.lua b/pkgs/custom-neovim/config/lua/plugins/mini-completion.lua deleted file mode 100644 index 7cc0fa6..0000000 --- a/pkgs/custom-neovim/config/lua/plugins/mini-completion.lua +++ /dev/null @@ -1,39 +0,0 @@ -return { - "mini.completion", - enabled = true, - lazy = true, - event = "InsertEnter", - after = function() - require("mini.completion").setup { - window = { - info = { - border = "rounded", - }, - signature = { - border = "rounded", - }, - }, - } - local imap_expr = function(lhs, rhs) - vim.keymap.set('i', lhs, rhs, { expr = true }) - end - imap_expr('<Tab>', [[pumvisible() ? "\<C-n>" : "\<Tab>"]]) - imap_expr('<S-Tab>', [[pumvisible() ? "\<C-p>" : "\<S-Tab>"]]) - - -- Disable arrow keys from navigating completion window. - -- I like to navigate inside insert mode and the window prevents that. - - vim.keymap.set('i', '<Up>', function() - -- cancel completion popup - vim.fn.complete(vim.fn.col('.'), {}) - - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<Up>', true, false, true), 'n', true) - end, { noremap = true, desc = 'Cancel completion and move cursor up' }) - - vim.keymap.set('i', '<Down>', function() - vim.fn.complete(vim.fn.col('.'), {}) - - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<Down>', true, false, true), 'n', true) - end, { noremap = true, desc = 'Cancel completion and move cursor down' }) - end -} |
