From a9c559f9fc070985db26e820f352395d75569eb8 Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Wed, 27 Mar 2024 23:51:05 -0400 Subject: lazy, neorg, and oil apparently packer is abandoned, neorg told me to use lazy neorg is so cool actually vim-vinegar walked so that oil could fly --- .config/nvim/lua/neorg_conf.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .config/nvim/lua/neorg_conf.lua (limited to '.config/nvim/lua/neorg_conf.lua') 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: = + }, + -- 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', {}) -- cgit v1.2.3-70-g09d2