mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-29 15:04:36 +02:00
Updated 7. Contoh Custom Plugins (markdown)
parent
6bce491f22
commit
1da6699769
1 changed files with 47 additions and 1 deletions
|
@ -1369,3 +1369,49 @@ return {
|
||||||
```
|
```
|
||||||
summer : <be>
|
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