From 10b175f252104458d7478d8a2822818850cfdf92 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 15 Jan 2023 22:47:30 +0100 Subject: Refactor file structure --- fnl/plugins/tools/diffview.fnl | 5 +++++ fnl/plugins/tools/neogit.fnl | 6 ++++++ fnl/plugins/tools/orgmode.fnl | 24 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 fnl/plugins/tools/diffview.fnl create mode 100644 fnl/plugins/tools/neogit.fnl create mode 100644 fnl/plugins/tools/orgmode.fnl (limited to 'fnl/plugins/tools') diff --git a/fnl/plugins/tools/diffview.fnl b/fnl/plugins/tools/diffview.fnl new file mode 100644 index 0000000..9978c2e --- /dev/null +++ b/fnl/plugins/tools/diffview.fnl @@ -0,0 +1,5 @@ +;; Inspect commits. + +{1 :sindrets/diffview.nvim + :cmd [:DiffviewFileHistory :DiffviewOpen] + :config true} diff --git a/fnl/plugins/tools/neogit.fnl b/fnl/plugins/tools/neogit.fnl new file mode 100644 index 0000000..b7c1633 --- /dev/null +++ b/fnl/plugins/tools/neogit.fnl @@ -0,0 +1,6 @@ +;; Git ui. + +{1 :TimUntersberger/neogit + :cmd :Neogit + :dependencies [:nvim-lua/plenary.nvim] + :config true} diff --git a/fnl/plugins/tools/orgmode.fnl b/fnl/plugins/tools/orgmode.fnl new file mode 100644 index 0000000..99e55be --- /dev/null +++ b/fnl/plugins/tools/orgmode.fnl @@ -0,0 +1,24 @@ +;; Orgmode for nvim. + +(local templates + {:t {:description :Task :template "* TODO %?\n %u\n DEADLINE: %T\n"} + :m {:description :Meeting :template "* Meeting %?"} + :n {:description :Note :template "* NOTE %? :NOTE:\n %u\n"}}) + +(local opts {:org_agenda_files ["~/.local/share/org/**/*"] + :org_hide_emphasis_markers true + :org_agenda_start_on_weekday false + :org_default_notes_file "~/.local/share/org/refile.org" + :org_agenda_templates templates}) + +(fn setup [] + (let [orgmode (require :orgmode)] + (tset vim.opt :conceallevel 2) + (tset vim.opt :concealcursor :nc) + (orgmode.setup_ts_grammar) + (orgmode.setup opts))) + +{1 :nvim-orgmode/orgmode + :event :BufReadPost + :config (fn [] + (setup))} -- cgit v1.2.3-70-g09d2