Files
nvim/lua/plugins/functional/neorg.lua

57 lines
1.5 KiB
Lua

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.integrations.treesitter"] = {},
["core.looking-glass"] = {},
["core.completion"] = {
config = { engine = { module_name = "external.lsp-completion" } },
},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/Notes",
},
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
end,
}