]> git.madduck.net Git - etc/neovim.git/commitdiff

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:

simplify ale setup
authormartin f. krafft <madduck@madduck.net>
Thu, 17 Apr 2025 06:31:24 +0000 (08:31 +0200)
committermartin f. krafft <madduck@madduck.net>
Thu, 17 Apr 2025 06:37:57 +0000 (08:37 +0200)
.config/nvim/plugin/ale.lua

index 6bbecff63d25917b636a79e27c25411112231b12..e24479f86724780934c70dae8819210451517d4e 100644 (file)
@@ -7,15 +7,15 @@ if ale then
        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_completion_enabled = true
        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_open_list = true
-       vim.g.ale_use_neovim_diagnostics_api = true
+       vim.g.ale_use_neovim_diagnostics_api = false
 
-       vim.g.ale_lint_on_text_changed = "normal"
+       vim.g.ale_lint_on_text_changed = false
        vim.g.ale_lint_on_insert_leave = true
        vim.g.ale_lint_on_enter = true