diff options
Diffstat (limited to '.config/nvim/lua/neorg_conf.lua')
| -rw-r--r-- | .config/nvim/lua/neorg_conf.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/nvim/lua/neorg_conf.lua b/.config/nvim/lua/neorg_conf.lua new file mode 100644 index 0000000..3c8b934 --- /dev/null +++ b/.config/nvim/lua/neorg_conf.lua @@ -0,0 +1,23 @@ +require('luarocks-nvim').setup({}) +require('neorg').setup({ + load = { + ["core.defaults"] = {}, + ["core.integrations.treesitter"] = {}, + ["core.autocommands"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/notes", -- Format: <name_of_workspace> = <path_to_workspace_root> + }, + -- Automatically detect whenever we have entered a subdirectory of a workspace + autodetect = true, + default_workspace = 'notes', + open_last_workspace = false, + index = "index.norg", -- The name of the main (root) .norg file + } + } + } +}) + +vim.api.nvim_create_user_command('Notes', 'Neorg index', {}) |
