Updated 7. Contoh Custom Plugins (markdown)

Asep Komarudin 2023-03-02 14:43:27 +07:00
parent 6bce491f22
commit 1da6699769

@ -1368,4 +1368,50 @@ return {
}
```
summer : <be>
https://github.com/adalessa/laravel.nvim
https://github.com/adalessa/laravel.nvim
# CMP Cmdline
- but file lua/plugin/cmdline.lua
```lua
return {
{ "gelguy/wilder.nvim", enabled = false },
{
"folke/noice.nvim",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
"nvim-treesitter/nvim-treesitter",
},
event = "BufWinEnter",
config = function()
vim.opt.lazyredraw = false
require("noice").setup()
end,
},
{
"hrsh7th/cmp-cmdline",
event = "BufWinEnter",
config = function()
local cmp = require("cmp")
-- Use buffer source for `/`.
cmp.setup.cmdline("/", {
sources = {
{ name = "buffer" },
},
})
-- Use cmdline & path source for ':'.
cmp.setup.cmdline(":", {
sources = cmp.config.sources({
{ name = "path" },
}, {
{ name = "cmdline" },
}),
})
end,
},
}
```
Sumber :
https://github.com/folke/noice.nvim
https://github.com/hrsh7th/cmp-cmdline