aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/after/plugin/ledger.lua
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-08 15:44:33 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-08 15:44:33 +0100
commit383bb5cccf8bb6879676bfac2c62b0cd1b333aff (patch)
treef6953cb279ea82aeced10d25fcc7732bf9383452 /nvim/after/plugin/ledger.lua
parentf3de025965079cc095c8aa43667e6d2153387f5b (diff)
Adds vim-ledger and basic config; removes packer_complied
vim-ledger makes it slightly easier to edit ledger files. Not sure if I should be removing packer_compiled yet.
Diffstat (limited to 'nvim/after/plugin/ledger.lua')
-rw-r--r--nvim/after/plugin/ledger.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim/after/plugin/ledger.lua b/nvim/after/plugin/ledger.lua
new file mode 100644
index 0000000..6a47935
--- /dev/null
+++ b/nvim/after/plugin/ledger.lua
@@ -0,0 +1,4 @@
+-- easily make a transaction starred with <leader>-
+vim.keymap.set("n", "<leader>-", "<cmd>call ledger#transaction_state_set(line('.'), '*')<CR>")
+
+vim.api.nvim_set_var("ledger_detailed_first", 0)