mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
auto complate commond mode
This commit is contained in:
parent
7e4fa022a1
commit
3d6ab29195
4 changed files with 79 additions and 17 deletions
49
lua/plugins/cmp_cndline.lua
Normal file
49
lua/plugins/cmp_cndline.lua
Normal file
|
@ -0,0 +1,49 @@
|
|||
return {
|
||||
-- {
|
||||
-- "hrsh7th/cmp-cmdline",
|
||||
-- event = "BufWinEnter",
|
||||
-- config = function()
|
||||
-- local cmp = require("cmp")
|
||||
-- -- for cmd line
|
||||
-- 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,
|
||||
-- },
|
||||
|
||||
-- for auto complate commond mode
|
||||
{
|
||||
"gelguy/wilder.nvim",
|
||||
event = "BufWinEnter",
|
||||
config = function()
|
||||
local wilder = require("wilder")
|
||||
wilder.setup({ modes = { ":", "/", "?" } })
|
||||
wilder.set_option(
|
||||
"renderer",
|
||||
wilder.popupmenu_renderer({
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
left = { " ", wilder.popupmenu_devicons() },
|
||||
right = { " ", wilder.popupmenu_scrollbar() },
|
||||
})
|
||||
)
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue