summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Juan Loeza Sierra <jj@xz6ze.com>2025-07-30 21:05:42 -0700
committerJosé Juan Loeza Sierra <jj@xz6ze.com>2025-07-30 21:05:42 -0700
commit1361506c7049e756404ce84f5b9cb21c2fb80c48 (patch)
tree8a814ebaa05327ea222e0675f5340abde5d6f5aa
parent16f618e6596cda0f7ff9fc47d44277648752e419 (diff)
add hledger nvim config
-rw-r--r--dot-config/nvim/lua/plugins/hledger.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/dot-config/nvim/lua/plugins/hledger.lua b/dot-config/nvim/lua/plugins/hledger.lua
new file mode 100644
index 0000000..240d0a6
--- /dev/null
+++ b/dot-config/nvim/lua/plugins/hledger.lua
@@ -0,0 +1,18 @@
+-- add language support for hledger
+-- based on options from https://www.lazyvim.org/extras/lang/astro
+
+return {
+ {
+ "nvim-treesitter/nvim-treesitter",
+ opts = { ensure_installed = { "ledger" } },
+ },
+
+ {
+ "stevearc/conform.nvim",
+ opts = {
+ formatters_by_ft = {
+ ledger = { "hledger-fmt" },
+ },
+ },
+ },
+}