return { "nvim-neorg/neorg", lazy = false, version = "*", dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-neorg/neorg-telescope" }, { "benlubas/neorg-interim-ls" } }, config = function() require("neorg").setup({ load = { ["core.defaults"] = {}, ["core.concealer"] = {}, ["core.qol.toc"] = { config = { close_after_use = true, }, }, ["core.integrations.treesitter"] = {}, ["core.looking-glass"] = {}, ["core.itero"] = { config = { iterables = { "unordered_list%d", "ordered_list%d", "quote%d", }, }, }, ["core.completion"] = { config = { engine = { module_name = "external.lsp-completion" } }, }, ["core.dirman"] = { config = { workspaces = { notes = "~/Notes", site = "~/Documents/voidarc/content/", }, default_workspace = "notes", }, }, ["core.integrations.telescope"] = { config = { insert_file_link = { -- Whether to show the title preview in telescope. Affects performance with a large -- number of files. show_title_preview = true, }, }, }, ["external.interim-ls"] = { config = { -- default config shown completion_provider = { -- Enable or disable the completion provider enable = true, -- Show file contents as documentation when you complete a file name documentation = true, -- Try to complete categories provided by Neorg Query. Requires `benlubas/neorg-query` categories = false, -- suggest heading completions from the given file for `{@x|}` where `|` is your cursor -- and `x` is an alphanumeric character. `{@name}` expands to `[name]{:$/people:# name}` }, }, }, }, }) vim.wo.foldlevel = 99 vim.wo.conceallevel = 2 vim.api.nvim_create_autocmd("Filetype", { pattern = "norg", callback = function() vim.keymap.set("n", "", "(neorg.esupports.hop.hop-link.vsplit)", { buffer = true }) vim.keymap.set("i", "", "(neorg.itero.next-iteration)", { buffer = true }) vim.keymap.set("n", "m", "Neorg inject-metadata", { buffer = true }) vim.keymap.set("n", "f", "Telescope neorg insert_link", { buffer = true }) vim.opt.colorcolumn = "140" vim.api.nvim_set_hl(0, "@neorg.tags.ranged_verbatim.code_block", { bg = "NONE" }) end, }) end, }