mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-25 02:08:48 +02:00
Updated 7. Example Custom Plugins (markdown)
parent
87cbdd34bf
commit
3cf511a892
1 changed files with 12 additions and 19 deletions
|
@ -1431,13 +1431,22 @@ https://github.com/adalessa/laravel.nvim
|
|||
# CMP Cmdline
|
||||
- but file lua/plugin/cmdline.lua
|
||||
```lua
|
||||
vim.opt.lazyredraw = false
|
||||
-- initial gui app
|
||||
local is_neovide = false
|
||||
local use_noice = true
|
||||
if vim.g.neovide then
|
||||
is_neovide = true
|
||||
use_noice = false
|
||||
end
|
||||
vim.opt.lazyredraw = is_neovide
|
||||
return {
|
||||
{ "gelguy/wilder.nvim", enabled = false },
|
||||
{ "gelguy/wilder.nvim", enabled = not use_noice },
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
lazy = true,
|
||||
enabled = use_noice,
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
{ "MunifTanjim/nui.nvim", enabled = use_noice },
|
||||
},
|
||||
event = "BufWinEnter",
|
||||
opts = {
|
||||
|
@ -1514,22 +1523,6 @@ return {
|
|||
mode = { "i", "n", "s" },
|
||||
},
|
||||
},
|
||||
-- config = function()
|
||||
-- vim.opt.lazyredraw = false
|
||||
-- require("noice").setup({
|
||||
-- messages = {
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- notify = {
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- lsp = {
|
||||
-- progress = {
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- },
|
||||
-- })
|
||||
-- end,
|
||||
},
|
||||
{
|
||||
"hrsh7th/cmp-cmdline",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue