]> git.madduck.net Git - etc/neovim.git/blobdiff - .config/nvim/plugin/ale.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Remove invtoggle, which apparently is no longer needed
[etc/neovim.git] / .config / nvim / plugin / ale.lua
index 90dcfa99749529f492c9bd48c5021d7ec9b5e74d..6bbecff63d25917b636a79e27c25411112231b12 100644 (file)
@@ -1,22 +1,27 @@
 ale = prequire("ale")
 
 if ale then
 ale = prequire("ale")
 
 if ale then
-  vim.keymap.set({'n', 'i'}, '<F7>', [[<cmd>ALELint<CR>]])
-  vim.keymap.set({'n', 'i'}, '<F8>', [[<cmd>ALEFix<CR>]])
+       vim.keymap.set({ "n", "i" }, "<F7>", [[<cmd>ALELint<CR>]])
+       vim.keymap.set({ "n", "i" }, "<F8>", [[<cmd>ALEFix<CR>]])
 
 
-  vim.keymap.set('n', '<C-k>', '<Plug>(ale_previous_wrap)')
-  vim.keymap.set('n', '<C-j>', '<Plug>(ale_next_wrap)')
+       vim.keymap.set("n", "<C-k>", "<Plug>(ale_previous_wrap)")
+       vim.keymap.set("n", "<C-j>", "<Plug>(ale_next_wrap)")
 
 
-  vim.g.ale_completion_enabled = 0
-  vim.g.ale_echo_msg_format = '%code: %%s [%linter%]'
-  vim.g.ale_fixers = { ['*'] = { "remove_trailing_lines", "trim_whitespace" } }
-  vim.g.ale_virtualtext_cursor = 'current'
+       vim.g.ale_completion_enabled = 0
+       vim.g.ale_echo_msg_format = "%code: %%s [%linter%]"
+       vim.g.ale_fixers = { ["*"] = { "remove_trailing_lines", "trim_whitespace" } }
+       vim.g.ale_virtualtext_cursor = "current"
 
 
-  vim.g.ale_lint_on_text_changed = 'normal'
-  vim.g.ale_lint_on_insert_leave = true
-  vim.g.ale_lint_on_enter = true
+       vim.g.ale_open_list = true
+       vim.g.ale_use_neovim_diagnostics_api = true
 
 
-  vim.opt_local.signcolumn = 'no'
+       vim.g.ale_lint_on_text_changed = "normal"
+       vim.g.ale_lint_on_insert_leave = true
+       vim.g.ale_lint_on_enter = true
+
+       -- Cannot use `vim.opt_local.signcolumn` due to
+       -- https://github.com/neovim/neovim/issues/14670
+       vim.cmd("setlocal signcolumn=no")
 else
 else
-  print 'ALE is not installed'
+       print("ALE is not installed")
 end
 end