From 3cf511a892103b995c40b70a6dece715ec171f93 Mon Sep 17 00:00:00 2001 From: Asep Komarudin <68836805+pojokcodeid@users.noreply.github.com> Date: Sun, 17 Mar 2024 15:54:50 +0700 Subject: [PATCH] Updated 7. Example Custom Plugins (markdown) --- 7.-Example-Custom-Plugins.md | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/7.-Example-Custom-Plugins.md b/7.-Example-Custom-Plugins.md index 10d796b..71f53ce 100644 --- a/7.-Example-Custom-Plugins.md +++ b/7.-Example-Custom-Plugins.md @@ -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",