Skip to content

Commit

Permalink
wilder->cmd.cmpline
Browse files Browse the repository at this point in the history
  • Loading branch information
fecet committed Jul 17, 2023
1 parent be7b593 commit da7264f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
21 changes: 21 additions & 0 deletions lua/modules/configs/completion/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,25 @@ return function()
},
},
})
-- `/` cmdline setup.
cmp.setup.cmdline("/", {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = "buffer" },
},
})
-- `:` cmdline setup.
cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
}, {
{
name = "cmdline",
option = {
ignore_cmds = { "Man", "!" },
},
},
}),
})
end
1 change: 1 addition & 0 deletions lua/modules/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ completion["hrsh7th/nvim-cmp"] = {
{ "hrsh7th/cmp-buffer" },
{ "kdheepak/cmp-latex-symbols" },
{ "ray-x/cmp-treesitter", commit = "c8e3a74" },
{ "hrsh7th/cmp-cmdline" },
-- { "tzachar/cmp-tabnine", build = "./install.sh", config = require("completion.tabnine") },
-- {
-- "jcdickinson/codeium.nvim",
Expand Down
12 changes: 6 additions & 6 deletions lua/modules/plugins/tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ tool["folke/which-key.nvim"] = {
event = { "CursorHold", "CursorHoldI" },
config = require("tool.which-key"),
}
tool["gelguy/wilder.nvim"] = {
lazy = true,
event = "CmdlineEnter",
config = require("tool.wilder"),
dependencies = { "romgrk/fzy-lua-native" },
}
-- tool["gelguy/wilder.nvim"] = {
-- lazy = true,
-- event = "CmdlineEnter",
-- config = require("tool.wilder"),
-- dependencies = { "romgrk/fzy-lua-native" },
-- }

tool["ecthelionvi/NeoComposer.nvim"] = {
lazy = true,
Expand Down

0 comments on commit da7264f

Please sign in to comment.