aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/neorg_conf.lua
diff options
context:
space:
mode:
authorAlec Goncharow <alec@goncharow.dev>2024-03-27 23:51:05 -0400
committerAlec Goncharow <alec@goncharow.dev>2024-03-27 23:51:50 -0400
commita9c559f9fc070985db26e820f352395d75569eb8 (patch)
tree565c4c21c3fbd0147166a5d3195d70b085168789 /.config/nvim/lua/neorg_conf.lua
parente4c0895320d09ab7238e91aefc4e7112ba577a72 (diff)
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
Diffstat (limited to '.config/nvim/lua/neorg_conf.lua')
-rw-r--r--.config/nvim/lua/neorg_conf.lua23
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', {})