From 168f7be5be9524757722c8ec3f4056188450455d Mon Sep 17 00:00:00 2001 From: zymon Date: Sun, 1 Sep 2024 15:48:19 +0200 Subject: [PATCH] neorg --- lua/znvim/plugins/cmp.lua | 1 + lua/znvim/plugins/neorg.lua | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 lua/znvim/plugins/neorg.lua diff --git a/lua/znvim/plugins/cmp.lua b/lua/znvim/plugins/cmp.lua index 8f881b4..d86fe7a 100644 --- a/lua/znvim/plugins/cmp.lua +++ b/lua/znvim/plugins/cmp.lua @@ -26,6 +26,7 @@ return { { name = "path" }, { name = "nvim_lsp" }, { name = 'nvim_lsp_signature_help' }, + { name = "neorg" }, }), window = { completion = cmp.config.window.bordered(), diff --git a/lua/znvim/plugins/neorg.lua b/lua/znvim/plugins/neorg.lua new file mode 100644 index 0000000..ad2c2fd --- /dev/null +++ b/lua/znvim/plugins/neorg.lua @@ -0,0 +1,40 @@ +return { + "https://github.com/nvim-neorg/neorg", + lazy = true, + ft = "norg", + cmd = "Neorg", + dependencies = { + "https://github.com/nvim-lua/plenary.nvim", + "https://github.com/nvim-neorg/neorg-telescope", + }, + opts = { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = { + config = { + icon_preset = "diamond", + }, + }, + ["core.integrations.telescope"] = {}, + ["core.keybinds"] = { + config = { + default_keybinds = true, + }, + }, + ["core.completion"] = { + config = { + engine = "nvim-cmp", + }, + }, + ["core.dirman"] = { + config = { + workspaces = { + notatki = "~/n", + }, + default_workspace = "notatki", + index = "index.norg", + }, + }, + } + }, +}