mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-28 14:34:34 +02:00
Updated 7. Contoh Custom Plugins (markdown)
parent
6bce491f22
commit
1da6699769
1 changed files with 47 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue