diff --git a/init.lua b/init.lua index 48c257c..fa7eb73 100644 --- a/init.lua +++ b/init.lua @@ -18,6 +18,6 @@ require 'config.global' require 'config.lazy' require 'config.autocommands' -require 'config.redir' +-- require 'config.redir' diff --git a/lua/plugins/completion.lua b/lua/plugins/completion.lua index 75fb683..cd5cfe7 100644 --- a/lua/plugins/completion.lua +++ b/lua/plugins/completion.lua @@ -40,14 +40,7 @@ return { }, sources = { default = { "lazydev", "lsp", "path", "snippets", "buffer", "emoji" }, - cmdline = { - enabled = false, - }, - min_keyword_length = function(ctx) - -- only applies when typing a command, doesn't apply to arguments - if ctx.mode == 'cmdline' and string.find(ctx.line, ' ') == nil then return 3 end - return 0 - end, + cmdline = {}, providers = { emoji = { module = "blink-emoji", @@ -83,11 +76,7 @@ return { treesitter_highlighting = true, }, menu = { - auto_show = function(ctx) - vim.print('hello') - vim.print(vim.fn.getcmdtype()) - return ctx.mode ~= "cmdline" or not vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype()) - end, + auto_show = true }, }, signature = { enabled = true }