aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 59efa86..e62906e 100644
--- a/init.lua
+++ b/init.lua
@@ -103,6 +103,8 @@ vim.api.nvim_set_keymap('n', '<leader>cp', "<cmd>cprev<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>cn', "<cmd>cnext<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>lp', "<cmd>lprev<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>ln', "<cmd>lnext<cr>", { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>lo', "<cmd>lopen<cr>", { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>lc', "<cmd>lclose<cr>", { noremap = true })
-- Visually select line without ending
vim.api.nvim_set_keymap('n', '<leader>v', '^v$h', { noremap = true })
-- Ledger Shortcuts
@@ -387,11 +389,15 @@ return require('packer').startup(function()
use {
'dense-analysis/ale',
config = function()
+ -- vim.g.ale_set_quickfix = 1
+ -- vim.g.ale_open_list = 1
+ vim.g.ale_lint_on_save = 1
vim.g.ale_linters = {
sh = { "shellcheck", },
python = { "flake8" },
dockerfile = { "hadolint" },
terraform = { "terraform_ls" },
+ markdown = { "vale" },
}
vim.g.ale_fixers = {
sh = { "shfmt", },
@@ -412,6 +418,15 @@ return require('packer').startup(function()
}
use 'hashivim/vim-terraform'
use {
+ 'anufrievroman/vim-angry-reviewer',
+ config = function()
+ vim.g.AngryReviewerEnglish = 'american'
+ vim.cmd([[
+ autocmd BufWrite *.md :AngryReviewer
+ ]])
+ end
+ }
+ use {
'mileszs/ack.vim',
config = function()
vim.cmd([[