summaryrefslogtreecommitdiff
path: root/dot-config/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/nvim')
-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" },
+ },
+ },
+ },
+}