-- plugin({ -- "rebelot/kanagawa.nvim", -- neorg needs a colorscheme with treesitter support -- config = function() -- vim.cmd.colorscheme("kanagawa") -- end, -- }) plugin({ "nvim-neorg/neorg", lazy = false, version = "*", config = function() require("neorg").setup({ load = { ["core.defaults"] = {}, ["core.concealer"] = {}, ["core.dirman"] = { config = { workspaces = { notes = "~/notes/general", quikserve = "~/notes/quikserve", personal = "~/notes/personal", }, default_workspace = "notes", }, }, }, }) vim.wo.foldlevel = 99 vim.wo.conceallevel = 2 end, }) map("n", "n", ":Neorg index", { desc = "Neorg index" }) map("n", "nn", ":Neorg", { desc = "Neorg index" }) map("n", "nj", ":Neorg journal", { desc = "Neorg index" }) map("n", "nt", ":Neorg journal today", { desc = "Neorg index" }) map("n", "ni", ":Neorg index", { desc = "Neorg index" }) map("n", "nr", ":Neorg return", { desc = "Neorg return" }) map("n", "nw", function() neorg = require("neorg") local workspaces = {} for k, v in pairs(neorg.config.modules["core.dirman"].workspaces) do table.insert(workspaces, k) -- Inserts the key 'k' into the list end vim.ui.select(workspaces, {}, function(item) if item ~= nil then neorg.modules.loaded_modules["core.dirman"].public.open_workspace(item) end end) end, { desc = "Neorg index" })