diff options
-rw-r--r-- | init.lua | 18 | ||||
-rw-r--r-- | test.md | 22 |
2 files changed, 31 insertions, 9 deletions
@@ -122,7 +122,14 @@ 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 }) +vim.api.nvim_set_keymap('n', '<leader>ef', '<cmd>ALEFix<cr>', { noremap = true }) +vim.api.nvim_set_keymap('n', '<leader>el', '<cmd>ALELint<cr>', { noremap = true }) +-- Markdown functions +vim.api.nvim_set_keymap('n', '<leader>po', '<cmd>AngryReviewer<cr><c-w>k<cmd>ALELint<cr><cmd>lopen<cr><c-w>k', { noremap = true }) +vim.api.nvim_set_keymap('n', '<leader>pse', '<cmd>LanguageToolSetUp<cr>', { noremap = true }) +vim.api.nvim_set_keymap('n', '<leader>psc', '<cmd>LanguageToolCheck<cr>', { noremap = true }) +vim.api.nvim_set_keymap('n', '<leader>psu', '<cmd>LanguageToolSummary<cr>', { noremap = true }) +vim.api.nvim_set_keymap('n', '<leader>pc', '<cmd>cclose<cr><cmd>lclose<cr>', { noremap = true }) -- Build a custom status line local status_line = { @@ -313,8 +320,7 @@ vim.api.nvim_set_keymap('', '<leader>s', '<cmd>HopChar2<cr>', { 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', '<leader>y', '<cmd>OSCYankReg 0<cr>', { noremap = true }) -- vim-angry-reviewer vim.g.AngryReviewerEnglish = 'american' -vim.cmd([[ - autocmd BufWrite *.md :AngryReviewer -]]) -- ack.vim vim.cmd([[ @@ -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. |