aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2022-01-07 14:00:26 -0700
committerCody Hiar <cody@hiar.ca>2022-01-07 14:00:39 -0700
commit12f4bd12939b1faa7c6a5d2cda8d146ec4081031 (patch)
tree077fbc2d9569f551b81846afc6bc0a32d100b833
parentbc33fcc71faaa7784ff018f1bd2dd65ca68287d0 (diff)
command updates
-rw-r--r--init.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index f300a96..442b836 100644
--- a/init.lua
+++ b/init.lua
@@ -126,6 +126,8 @@ vim.api.nvim_set_keymap('n', '<c-w><c-w>', '<cmd>w<cr>', { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>ee', '<cmd>e!<cr>', { noremap = true })
vim.api.nvim_set_keymap('n', '<expr> k', [[(v:count > 1 ? "m'" . v:count : '') . 'k']], { noremap = true })
vim.api.nvim_set_keymap('n', '<expr> j', [[(v:count > 1 ? "m'" . v:count : '') . 'j']], { noremap = true })
+-- Call Ale Fix
+vim.api.nvim_set_keymap('n', '<leader>ei', '<cmd>ALEFix<cr>', { noremap = true })
-- Build a custom status line
@@ -302,7 +304,8 @@ return require('packer').startup(function()
vim.api.nvim_set_keymap('n', '<leader>fb', "<cmd>Buffers<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>ft', "<cmd>Tags<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>fm', "<cmd>Marks<cr>", { noremap = true })
- vim.cmd([[let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/\.mypy_cache/*" -not -path "*/\.venv/*" ']])
+ vim.api.nvim_set_keymap('n', '<leader>fg', "<cmd>GF?<cr>", { noremap = true })
+ vim.cmd([[let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/\.mypy_cache/*" -not -path "*/\.venv/*" -not -path "*/\node_modules/*" ']])
end,
}
use {
@@ -318,6 +321,7 @@ return require('packer').startup(function()
vim.api.nvim_set_keymap('n', '<leader>dd', '<cmd>diffget<cr>', { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>df', '<cmd>diffput<cr>', { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>gs', '<cmd>Git<cr>', { noremap = true })
+ vim.api.nvim_set_keymap('n', '<leader>gb', '<cmd>Git blame<cr>', { noremap = true })
end
}
@@ -368,7 +372,10 @@ return require('packer').startup(function()
'dense-analysis/ale',
config = function()
vim.g.ale_linters = {
- shell = { "shellcheck", },
+ sh = { "shellcheck", },
+ }
+ vim.g.ale_fixers = {
+ sh = { "shfmt", },
}
end
}