From b9bcd3bb0bc351bf7db73fd97877081133f63c39 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 13 Jan 2025 20:57:18 -0600 Subject: [PATCH] make some changes to init.lua --- config/nvim/init.lua | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/config/nvim/init.lua b/config/nvim/init.lua index bb0f6e2..d3b33ef 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -133,14 +133,27 @@ vim.opt.rtp:prepend(lazypath) require("lazy").setup({ spec = { - { "nvim-lua/plenary.nvim" }, + { "nvim-lua/plenary.nvim", lazy = true }, { "nvim-telescope/telescope.nvim" }, { "nvim-tree/nvim-tree.lua" }, - { 'dinhhuy258/git.nvim' }, - { "octarect/telescope-menu.nvim" }, + { 'dinhhuy258/git.nvim', lazy = true }, + { "octarect/telescope-menu.nvim", lazy = true }, { "VonHeikemen/lsp-zero.nvim" }, { "neovim/nvim-lspconfig" }, - { "serenevoid/kiwi.nvim" }, + { + "serenevoid/kiwi.nvim", + opts = { + { + name = "wiki", + path = "/home/usr/wiki" + } + }, + keys = { + { "ww", ":lua require(\"kiwi\").open_wiki_index()", desc = "Open Wiki index" }, + { "T", ":lua require(\"kiwi\").todo.toggle()", desc = "Toggle Markdown Task" } + }, + lazy = true + }, { "hrsh7th/nvim-cmp" }, { "hrsh7th/cmp-nvim-lsp" }, { "L3MON4D3/LuaSnip" }, @@ -148,7 +161,6 @@ require("lazy").setup({ { "lervag/vimtex" }, { "https://github.com/protex/better-digraphs.nvim" }, }, - checker = { enabled = true }, }) -- }}}