Skip to content

Commit

Permalink
move tf action
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Jan 5, 2025
1 parent 705af09 commit d9acdbd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nvim/.config/nvim/lua/user/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ return {
['[Folds] Close all folds (<leader>fc)'] = function()
vim.cmd 'normal! zM'
end,
['[Terraform] Add -target macro to register q'] = function()
-- set q register to -target
vim.fn.setreg('q', [[yss'I-target=A \j]])
pretty_print('Macro q set to -target', 'Terraform')
end,
['[Terraform] Remove terragrunt files'] = function()
require('lazy').load { plugins = { 'vim-fugitive' } }
local scan_dir = require 'plenary.scandir'
Expand All @@ -113,6 +108,9 @@ return {
v? will be ?d
%s?\v^\s*#\s*(.*) will be (.*)?\1 \2?
]]
-- set q register to -target
vim.fn.setreg('q', [[yss'I-target=A \j]])
pretty_print('Macro q set to -target', 'Terraform')
end,
['Basic groovy format'] = function()
vim.cmd.BasicGroovyFormat()
Expand Down

0 comments on commit d9acdbd

Please sign in to comment.