From b32d81ee8dcfa03e64302f95ab6368acac431c66 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 28 Jun 2022 17:02:03 -0600 Subject: Disable automatic linting/fixing. Shortcut calls to fix --- init.lua | 18 +++++++++--------- test.md | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 test.md diff --git a/init.lua b/init.lua index eeb0382..4a9c0e1 100644 --- a/init.lua +++ b/init.lua @@ -122,7 +122,14 @@ 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 }) +vim.api.nvim_set_keymap('n', 'ef', 'ALEFix', { noremap = true }) +vim.api.nvim_set_keymap('n', 'el', 'ALELint', { noremap = true }) +-- Markdown functions +vim.api.nvim_set_keymap('n', 'po', 'AngryReviewerkALELintlopenk', { noremap = true }) +vim.api.nvim_set_keymap('n', 'pse', 'LanguageToolSetUp', { noremap = true }) +vim.api.nvim_set_keymap('n', 'psc', 'LanguageToolCheck', { noremap = true }) +vim.api.nvim_set_keymap('n', 'psu', 'LanguageToolSummary', { noremap = true }) +vim.api.nvim_set_keymap('n', 'pc', 'ccloselclose', { noremap = true }) -- Build a custom status line local status_line = { @@ -313,8 +320,7 @@ vim.api.nvim_set_keymap('', 's', 'HopChar2', { noremap = true } require'hop'.setup { keys = 'etovxqpdygfblzhckisuran' } -- ale -vim.g.ale_lint_on_save = 1 -vim.g.ale_fix_on_save = 1 +vim.g.ale_lint_on_enter = 0 vim.g.ale_linters = { sh = { "shellcheck", }, python = { "flake8" }, @@ -329,18 +335,12 @@ vim.g.ale_fixers = { terraform = { "terraform" }, nix = { "nixfmt" }, } -vim.cmd([[ - autocmd BufRead *.py :ALEFix -]]) -- osc-yank vim.api.nvim_set_keymap('n', 'y', 'OSCYankReg 0', { noremap = true }) -- vim-angry-reviewer vim.g.AngryReviewerEnglish = 'american' -vim.cmd([[ - autocmd BufWrite *.md :AngryReviewer -]]) -- ack.vim vim.cmd([[ diff --git a/test.md b/test.md new file mode 100644 index 0000000..fd3a6dd --- /dev/null +++ b/test.md @@ -0,0 +1,22 @@ +``` +Correct passive voice +``` +The mat was sat on by the cat +The request is generated by the server + +``` +Reducing There is/There was +``` +There is a variable called met_trick that stores the current accuracy. +There are reasons for this. + +``` +Minimize adverbs +``` +Setting this flag makes the app run screamingly fast. + +``` +Simple languagetool test +``` + +There is was mine stuff. -- cgit v1.2.3