diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-11-28 01:40:50 +0100 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-11-28 01:40:50 +0100 |
| commit | eb33584738999ceb8bc7eb569b3d90b74698ee2c (patch) | |
| tree | e53b811ccdb4f867fd1e6e992020ffea7a44e169 /fnl/plugins/editor/neorg.fnl | |
| parent | 09be76041797a0b72fba4fff96fcdc9c3b9a426d (diff) | |
Add oil and neorg, remove neo-tree
Diffstat (limited to 'fnl/plugins/editor/neorg.fnl')
| -rw-r--r-- | fnl/plugins/editor/neorg.fnl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/fnl/plugins/editor/neorg.fnl b/fnl/plugins/editor/neorg.fnl new file mode 100644 index 0000000..6e15a74 --- /dev/null +++ b/fnl/plugins/editor/neorg.fnl @@ -0,0 +1,38 @@ +;; Orgmode but better. + +(local opts {:load {:core.defaults {} + :core.concealer {} + :core.summary {} + :core.completion {:config {:engine :nvim-cmp}} + :core.presenter {:config {:zen_mode :zen-mode}} + :core.dirman {:config {:workspaces {:master "~/.local/share/norg" + :molecular-notes "~/.local/share/norg/molecular-notes" + :gtd "~/.local/share/norg/gtd"} + :autochdir false + :default_workspace :master}} + :core.integrations.telescope {}}}) + +(fn config [] + (let [neorg (require :neorg)] + (neorg.setup opts))) + +(local auto-cmds + [[:FileType + {:pattern :norg + :callback (fn [] + (tset vim.opt_local :conceallevel 3))}]]) + +(fn init [] + (let [cmds (require :util.cmds)] + (cmds.create-auto-cmds auto-cmds))) + +{1 :nvim-neorg/neorg + :build ":Neorg sync-parsers" + :keys [{1 :<cr> 2 :VBox<cr> :mode :v}] + :ft :norg + :cmd :Norg + : init + : config + :dependencies [:nvim-lua/plenary.nvim + :nvim-neorg/neorg-telescope + :jbyuki/venn.nvim]} |