From 12f4bd12939b1faa7c6a5d2cda8d146ec4081031 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 7 Jan 2022 14:00:26 -0700 Subject: command updates --- init.lua | 11 +++++++++-- 1 file 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', '', 'w', { noremap = true }) vim.api.nvim_set_keymap('n', 'ee', 'e!', { noremap = true }) vim.api.nvim_set_keymap('n', ' k', [[(v:count > 1 ? "m'" . v:count : '') . 'k']], { noremap = true }) vim.api.nvim_set_keymap('n', ' j', [[(v:count > 1 ? "m'" . v:count : '') . 'j']], { noremap = true }) +-- Call Ale Fix +vim.api.nvim_set_keymap('n', 'ei', 'ALEFix', { noremap = true }) -- Build a custom status line @@ -302,7 +304,8 @@ return require('packer').startup(function() vim.api.nvim_set_keymap('n', 'fb', "Buffers", { noremap = true }) vim.api.nvim_set_keymap('n', 'ft', "Tags", { noremap = true }) vim.api.nvim_set_keymap('n', 'fm', "Marks", { 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', 'fg', "GF?", { 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', 'dd', 'diffget', { noremap = true }) vim.api.nvim_set_keymap('n', 'df', 'diffput', { noremap = true }) vim.api.nvim_set_keymap('n', 'gs', 'Git', { noremap = true }) + vim.api.nvim_set_keymap('n', 'gb', 'Git blame', { 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 } -- cgit v1.2.3