summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <>2023-04-19 23:22:28 +0200
committerMike Vink <>2023-04-19 23:22:28 +0200
commit0b1976d8a1fb124b76b79631afbbaa953721351e (patch)
treed2b1f81726dae388deb82b309470928a84ac05f4
parent10292a990e5059162e137f6aadc1eaa10b41f4c8 (diff)
fixup
-rw-r--r--fnl/conf/init.fnl16
1 files changed, 13 insertions, 3 deletions
diff --git a/fnl/conf/init.fnl b/fnl/conf/init.fnl
index 3a2b776..1eba757 100644
--- a/fnl/conf/init.fnl
+++ b/fnl/conf/init.fnl
@@ -30,7 +30,9 @@
(map :n "]x" ":lnext<cr>")
(map :n :<c-p> ":Telescope find_files<cr>")
(map :n "`<Backspace>" ":FocusDispatch ")
- (map :n "<leader>p" ":NewTab<cr>"))
+ (map :n :<leader>p ":NewTab<cr>")
+ (map :n :<leader>cf ":tabedit ~/flake|G<cr><c-w>o")
+ (map :n :<leader>cn ":tabedit ~/flake|G<cr><c-w>o"))
(tset _G :P (lambda [...]
(let [inspected (icollect [_ v (ipairs [...])]
@@ -53,10 +55,18 @@
(vim.api.nvim_create_user_command :Grunt
(fn [ctx]
(if (= (. ctx.fargs 1) :plan)
- (vim.cmd (.. ":Dispatch " (if ctx.bang "TF_LOG=DEBUG " "") "terragrunt "
+ (vim.cmd (.. ":Dispatch "
+ (if ctx.bang
+ "TF_LOG=DEBUG "
+ "")
+ "terragrunt "
(table.concat ctx.fargs
" ")))
- (vim.cmd (.. ":Start " (if ctx.bang "TF_LOG=DEBUG " "") "terragrunt "
+ (vim.cmd (.. ":Start "
+ (if ctx.bang
+ "TF_LOG=DEBUG "
+ "")
+ "terragrunt "
(table.concat ctx.fargs
" ")))))
{:nargs "*" :bang true})