Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Feb 8, 2025
1 parent ab240fc commit 999d17a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
require 'config.global'
require 'config.lazy'
require 'config.autocommands'
require 'config.redir'
-- require 'config.redir'


15 changes: 2 additions & 13 deletions lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit 999d17a

Please sign in to comment.