Skip to content

Commit 631cc90

Browse files
committed
Neorg Setup
1 parent c6c7e4b commit 631cc90

File tree

3 files changed

+76
-23
lines changed

3 files changed

+76
-23
lines changed

lazy-lock.json

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"LazyVim": { "branch": "main", "commit": "c4572fcec877053df89e7aba3bcd52a0ca5c7df7" },
2+
"LazyVim": { "branch": "main", "commit": "f67f20184f0fe852881d925d387ce138754fa147" },
33
"LuaSnip": { "branch": "master", "commit": "025886915e7a1442019f467e0ae2847a7cf6bf1a" },
4-
"SchemaStore.nvim": { "branch": "main", "commit": "8815ba003c04322ba1a7a1304ffaa9e4109efa32" },
4+
"SchemaStore.nvim": { "branch": "main", "commit": "ae41a33c0a30162d938619b055315efc0b459c18" },
55
"ai.vim": { "branch": "main", "commit": "26de0db6970762fe3db1cf3328b64b37dce8fa1b" },
66
"alpha-nvim": { "branch": "main", "commit": "dafa11a6218c2296df044e00f88d9187222ba6b0" },
77
"bufferline.nvim": { "branch": "main", "commit": "3677aceb9a72630b0613e56516c8f7151b86f95c" },
@@ -14,50 +14,51 @@
1414
"copilot-cmp": { "branch": "master", "commit": "92535dfd9c430b49ca7d9a7da336c5db65826b65" },
1515
"copilot.lua": { "branch": "master", "commit": "db62371b6eac73954c194f3c8faee36cffee8135" },
1616
"dressing.nvim": { "branch": "master", "commit": "5f44f829481640be0f96759c965ae22a3bcaf7ce" },
17-
"flit.nvim": { "branch": "main", "commit": "4c1739137acd3e7f03e2065a7be8a4dc41c7e461" },
17+
"flit.nvim": { "branch": "main", "commit": "f60e4b3d49bb5a5e97cfffe66f2e671eb422078e" },
1818
"flutter-tools.nvim": { "branch": "main", "commit": "727df22e2ae72a0482e5eb923e3d1c861a157a94" },
19-
"friendly-snippets": { "branch": "main", "commit": "25ddcd96540a2ce41d714bd7fea2e7f75fea8ead" },
19+
"friendly-snippets": { "branch": "main", "commit": "8d91ba2dc2421a54981115f61b914974f938fa77" },
2020
"gitsigns.nvim": { "branch": "main", "commit": "ca473e28382f1524aa3d2b6f04bcf54f2e6a64cb" },
2121
"indent-blankline.nvim": { "branch": "master", "commit": "018bd04d80c9a73d399c1061fa0c3b14a7614399" },
22-
"lazy.nvim": { "branch": "main", "commit": "be77c59bf742379b6c5ad1e70d29c5fc1ee55944" },
22+
"lazy.nvim": { "branch": "main", "commit": "57cce98dfdb2f2dd05a0567d89811e6d0505e13b" },
2323
"leap.nvim": { "branch": "main", "commit": "f74473d23ebf60957e0db3ff8172349a82e5a442" },
2424
"lualine.nvim": { "branch": "master", "commit": "e99d733e0213ceb8f548ae6551b04ae32e590c80" },
25-
"mason-lspconfig.nvim": { "branch": "main", "commit": "2b811031febe5f743e07305738181ff367e1e452" },
26-
"mason.nvim": { "branch": "main", "commit": "9f4e06029b1d8cd3bb4438f6b3de6d5c42d2d8d1" },
27-
"mini.ai": { "branch": "main", "commit": "d5a9f6b50fc6285fb876667e67394bbee2d5c70c" },
25+
"mason-lspconfig.nvim": { "branch": "main", "commit": "b64fdede85fd5e0b720ce722919e0a9b95ed6547" },
26+
"mason.nvim": { "branch": "main", "commit": "5a910000a450d234e13e80a51a227c1e1ebb3bcd" },
27+
"mini.ai": { "branch": "main", "commit": "9e18be22ba32963b772cad278854470700d2d1cc" },
2828
"mini.animate": { "branch": "main", "commit": "7c4c51a63b6915d16193d5c62eb72620f746e07b" },
29-
"mini.bufremove": { "branch": "main", "commit": "68f9111aa81545022bb5afe7d576311a0fc29969" },
29+
"mini.bufremove": { "branch": "main", "commit": "2b6d03f59523bd4f0499137596542bd922706af2" },
3030
"mini.comment": { "branch": "main", "commit": "f045998636c6fd746297220b8c692bf1e91568cb" },
3131
"mini.indentscope": { "branch": "main", "commit": "43f6761c9a3e397b7c12b3c72f678bcf61efcfcf" },
3232
"mini.pairs": { "branch": "main", "commit": "771c08bd313614c7e9a1904d277ac76eb226f674" },
33-
"mini.surround": { "branch": "main", "commit": "b450a3aff91b4108c0e9ba9e82633d65deb5802b" },
33+
"mini.surround": { "branch": "main", "commit": "cbc884d4dc99ab0d0c843cdb7391aad3144fad3f" },
3434
"neo-tree.nvim": { "branch": "v2.x", "commit": "20c2f2f5ba083bbb1e37b8bc3d590621434f31e9" },
35-
"neoconf.nvim": { "branch": "main", "commit": "cfd9acf23adb05754c50c5f6c015f11016de92be" },
36-
"neodev.nvim": { "branch": "main", "commit": "e027abc6d2a9c1efead2f697da8df2c0ed66b8ff" },
35+
"neoconf.nvim": { "branch": "main", "commit": "55923798eb46c2d38bf111dc2bc285c13e286765" },
36+
"neodev.nvim": { "branch": "main", "commit": "7330427f9f71ac5aaa2d1a4c22ccd3914434e289" },
37+
"neorg": { "branch": "main", "commit": "532548b9f444bd1ae6f2efd3edd842282cc79659" },
3738
"neural": { "branch": "main", "commit": "c70837e6fcee89bf99f9ba0e5ee7bfa7e0956a07" },
38-
"noice.nvim": { "branch": "main", "commit": "f8b1a72a7bce56d9e9ed054708dc855d57dec085" },
39+
"noice.nvim": { "branch": "main", "commit": "1da4edfba3e9278e98fc9723d7235d9ab3889744" },
3940
"nui.nvim": { "branch": "main", "commit": "0dc148c6ec06577fcf06cbab3b7dac96d48ba6be" },
4041
"null-ls.nvim": { "branch": "main", "commit": "0180603b6f3cee40f83c6fc226b9ac5f85e691c4" },
4142
"nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" },
42-
"nvim-dap": { "branch": "master", "commit": "7e81998e31277c7a33b6c34423640900c5c2c776" },
43-
"nvim-lspconfig": { "branch": "master", "commit": "c6105c449683b944b5d2138fcf82f18c657249e9" },
44-
"nvim-navic": { "branch": "master", "commit": "ca34afcd15c7f6dd0836fc4fca2e37024bfa5019" },
43+
"nvim-dap": { "branch": "master", "commit": "7389e85233e3483b31b6a1c4ba69cda77336b7a8" },
44+
"nvim-lspconfig": { "branch": "master", "commit": "e99d1590c7dc4c97b7dbc6a9c7e2dd830e204eea" },
45+
"nvim-navic": { "branch": "master", "commit": "59b997feb5915b8dbcbe5f34b07b12de332ea9de" },
4546
"nvim-notify": { "branch": "master", "commit": "50d037041ada0895aeba4c0215cde6d11b7729c4" },
46-
"nvim-spectre": { "branch": "master", "commit": "2d7d23c1122bb2589880236e932d373933b07937" },
47-
"nvim-treesitter": { "branch": "master", "commit": "1f087c91f5ca76a2257b855d72d371a2b5302986" },
48-
"nvim-treesitter-textobjects": { "branch": "master", "commit": "582cbb5a4cb50f6161cac8cc01f55aeaff6d836a" },
47+
"nvim-spectre": { "branch": "master", "commit": "8fd64743b6390ab151a607fa91d0d74087a80ba6" },
48+
"nvim-treesitter": { "branch": "master", "commit": "c9ef5e58f7d59aba875324825ff47900d0be61f2" },
49+
"nvim-treesitter-textobjects": { "branch": "master", "commit": "de9801d4f448df958d09fec60839e0a39d069610" },
4950
"nvim-ts-context-commentstring": { "branch": "main", "commit": "729d83ecb990dc2b30272833c213cc6d49ed5214" },
5051
"nvim-web-devicons": { "branch": "master", "commit": "95b1e300699be8eb6b5be1758a9d4d69fe93cc7f" },
5152
"persistence.nvim": { "branch": "main", "commit": "c814fae5c37aa0aba9cd9da05df6e52b88d612c3" },
5253
"plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
5354
"significant.nvim": { "branch": "main", "commit": "5450e9d5917dc6aa9afb0fcbe32355799b8303fb" },
5455
"telescope.nvim": { "branch": "master", "commit": "942fe5faef47b21241e970551eba407bc10d9547" },
55-
"todo-comments.nvim": { "branch": "main", "commit": "14e2cd9a6e5e67483a03660f08471ca9a981c4a5" },
56+
"todo-comments.nvim": { "branch": "main", "commit": "0874bda6848ff6f3da3ffdf4bd8297a5c951c5d4" },
5657
"tokyonight.nvim": { "branch": "main", "commit": "1b0c88094548a62641ece1e668fa9a234e1c539e" },
57-
"trouble.nvim": { "branch": "main", "commit": "7915277a259fdff5d46c6f1d2e100df2ec384d3b" },
58+
"trouble.nvim": { "branch": "main", "commit": "2ae7237c2917d661f458443c9a88680f8ca2d7b2" },
5859
"typescript.nvim": { "branch": "main", "commit": "f66d4472606cb24615dfb7dbc6557e779d177624" },
5960
"vim-illuminate": { "branch": "master", "commit": "a2907275a6899c570d16e95b9db5fd921c167502" },
6061
"vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" },
6162
"vim-startuptime": { "branch": "master", "commit": "6580cf539c33a212f4f5542068a3b4dd2b3ad834" },
62-
"which-key.nvim": { "branch": "main", "commit": "87b1459b3e0be0340da2183fc4ec8a00b2960678" }
63+
"which-key.nvim": { "branch": "main", "commit": "4b73390eec680b4c061ea175eb32c0ff3412271d" }
6364
}

lua/config/keymaps.lua

+21-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ vim.keymap.set("n", "<leader>yy", "ggVGy", { noremap = true, silent = true, desc
1919

2020
-- leader b, w saves the current buffer
2121
vim.keymap.set("n", "<leader>bw", ":w<cr>", { noremap = true, silent = true, desc = "save current buffer" })
22-
vim.keymap.set("n", "<leader>bw", ":wa<cr>", { noremap = true, silent = true, desc = "save all buffers" })
22+
vim.keymap.set("n", "<leader>bW", ":wa<cr>", { noremap = true, silent = true, desc = "save all buffers" })
2323

2424
-- Search
2525
vim.keymap.set(
@@ -65,3 +65,23 @@ vim.api.nvim_set_keymap(
6565
"<cmd>lua require('config.functions').toggle_ai_model()<CR>",
6666
{ noremap = true, silent = true }
6767
)
68+
69+
-- Run ":Neorg index" when pressing <leader><C-ni>
70+
vim.keymap.set("n", "<leader><C-n>i", ":Neorg index<CR>", { noremap = true, silent = true, desc = "Run :Neorg index" })
71+
-- Run ":Neorg return" when pressing <leader><C-nr>
72+
vim.keymap.set(
73+
"n",
74+
"<leader><C-n>r",
75+
":Neorg return<CR>",
76+
{ noremap = true, silent = true, desc = "Run :Neorg return" }
77+
)
78+
-- Run ":Neorg workspace" when pressing <leader><C-n>w
79+
vim.keymap.set(
80+
"n",
81+
"<leader><C-n>w",
82+
":Neorg workspace<CR>",
83+
{ noremap = true, silent = true, desc = "Run :Neorg workspace" }
84+
)
85+
86+
-- Run "let @+=@:" when pressing <leader><C-y>
87+
vim.keymap.set("n", "<leader><C-y>", "let @+=@:", { noremap = true, silent = true, desc = "Run let @+=@:" })

lua/plugins/neorg.lua

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
return {
2+
"nvim-neorg/neorg",
3+
build = ":Neorg sync-parsers",
4+
opts = {
5+
load = {
6+
["core.defaults"] = {},
7+
["core.norg.concealer"] = {
8+
config = {
9+
folds = false,
10+
icon_preset = "diamond",
11+
},
12+
},
13+
["core.norg.dirman"] = {
14+
config = {
15+
workspaces = {
16+
--tasks = "~/Google\\ Drive/My\\ Drive/Shared/Neorg/tasks",
17+
tasks = "~/.config/neorg/tasks/",
18+
--wildcard = "~/Google\\ Drive/My\\ Drive/Shared/Neorg/wildcard",
19+
wildcard = "~/.config/neorg/wildcard/",
20+
-- holstee = "~/Google\\ Drive/My\\ Drive/Shared/Neorg/holstee",
21+
holstee = "~/.config/neorg/holstee/",
22+
--personal = "~/Google\\ Drive/My\\ Drive/Shared/Neorg/personal",
23+
personal = "~/.config/neorg/personal/",
24+
},
25+
default_workspace = "tasks",
26+
index = "index.norg",
27+
},
28+
},
29+
},
30+
},
31+
dependencies = { { "nvim-lua/plenary.nvim" } },
32+
}

0 commit comments

Comments
 (0)