Skip to content

Commit

Permalink
update for neorg v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 committed Apr 19, 2023
1 parent 119e37e commit 415cc19
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ git clone https://github.com/pysan3/Norg-Tutorial.git
cd Norg-Tutorial/
```

**Neorg Just announced v3.0.0, which breaks the kickstart config**
## Big Caution

**Please wait till I fix it**
**Neorg just announced v3.0.0**

**The kickstart config is only compatible with v3.0.0+**

Update the plugin if it is on an old version.

## Before You Start

Expand Down
20 changes: 10 additions & 10 deletions norg_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ local M = {
}
local plugins = {
["core.defaults"] = {},
["core.norg.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
["core.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
["core.integrations.nvim-cmp"] = {},
["core.norg.concealer"] = { config = { icon_preset = "diamond" } },
["core.concealer"] = { config = { icon_preset = "diamond" } },
["core.export"] = {},
["core.keybinds"] = {
-- https://github.com/nvim-neorg/neorg/blob/main/lua/neorg/modules/core/keybinds/keybinds.lua
Expand Down Expand Up @@ -207,18 +207,18 @@ I already mentioned the necessary ones in [Kickstart Config](#kickstart-config),
```lua
local plugins = {
... -- ones mentioned in {** Kickstart Config}
["core.norg.esupports.metagen"] = { config = { type = "auto", update_date = true } },
["core.norg.qol.toc"] = {},
["core.norg.qol.todo_items"] = {},
["core.esupports.metagen"] = { config = { type = "auto", update_date = true } },
["core.qol.toc"] = {},
["core.qol.todo_items"] = {},
["core.looking-glass"] = {},
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
["core.norg.journal"] = {
["core.journal"] = {
config = {
strategy = "flat",
workspace = "Notes",
},
},
["core.norg.dirman"] = {
["core.dirman"] = {
config = {
workspaces = {
Notes = "~/Nextcloud/Notes",
Expand All @@ -234,11 +234,11 @@ local plugins = {



### `core.norg.dirman`
### `core.dirman`

This plugin is very recommended. It manages what are called _workspaces_.

You can define multiple workspaces at `config["core.norg.dirman"].config.workspaces`, and open with
You can define multiple workspaces at `config["core.dirman"].config.workspaces`, and open with
command `:Neorg workspace <name-of-workspace>`.
This command opens `/path/to/workspace/index.norg` which is like the entry point file.

Expand All @@ -249,7 +249,7 @@ So for example, inside workspace `Notes = "~/Nextcloud/Notes`,
Or, it can be abbreviated to `$/` when referring from files in the same workspace.


### `core.norg.journal`
### `core.journal`

This adds commands `:Neorg journal {today,tomorrow,yesterday}`,
which opens norg file with the appropriate date as name.
Expand Down
20 changes: 10 additions & 10 deletions norg_tutorial.norg
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ version: 1.0.0
}
local plugins = {
["core.defaults"] = {},
["core.norg.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
["core.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
["core.integrations.nvim-cmp"] = {},
["core.norg.concealer"] = { config = { icon_preset = "diamond" } },
["core.concealer"] = { config = { icon_preset = "diamond" } },
["core.export"] = {},
["core.keybinds"] = {
-- https://github.com/nvim-neorg/neorg/blob/main/lua/neorg/modules/core/keybinds/keybinds.lua
Expand Down Expand Up @@ -185,18 +185,18 @@ version: 1.0.0
@code lua
local plugins = {
... -- ones mentioned in {** Kickstart Config}
["core.norg.esupports.metagen"] = { config = { type = "auto", update_date = true } },
["core.norg.qol.toc"] = {},
["core.norg.qol.todo_items"] = {},
["core.esupports.metagen"] = { config = { type = "auto", update_date = true } },
["core.qol.toc"] = {},
["core.qol.todo_items"] = {},
["core.looking-glass"] = {},
["core.presenter"] = { config = { zen_mode = "zen-mode" } },
["core.norg.journal"] = {
["core.journal"] = {
config = {
strategy = "flat",
workspace = "Notes",
},
},
["core.norg.dirman"] = {
["core.dirman"] = {
config = {
workspaces = {
Notes = "~/Nextcloud/Notes",
Expand All @@ -209,10 +209,10 @@ version: 1.0.0

** Notes

*** `core.norg.dirman`
*** `core.dirman`
This plugin is very recommended. It manages what are called /workspaces/.

You can define multiple workspaces at `config["core.norg.dirman"].config.workspaces`, and open with
You can define multiple workspaces at `config["core.dirman"].config.workspaces`, and open with
command `:Neorg workspace <name-of-workspace>`.
This command opens `/path/to/workspace/index.norg` which is like the entry point file.

Expand All @@ -222,7 +222,7 @@ version: 1.0.0
`~/Nextcloud/Notes/journal/2023-04-16.norg` would be `{:$Notes/journal/2023-04-16:}`.
Or, it can be abbreviated to `$/` when referring from files in the same workspace.

*** `core.norg.journal`
*** `core.journal`
This adds commands `:Neorg journal {today,tomorrow,yesterday}`,
which opens norg file with the appropriate date as name.

Expand Down

0 comments on commit 415cc19

Please sign in to comment.