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", + }, + }, + } + }, +}