]> 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:

enable LSP, add ALE
authormartin f. krafft <madduck@madduck.net>
Fri, 11 Apr 2025 07:16:38 +0000 (09:16 +0200)
committermartin f. krafft <madduck@madduck.net>
Thu, 17 Apr 2025 06:36:51 +0000 (08:36 +0200)
.config/nvim/plugin/ale.lua
.gitignore.d/neovim

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
index fba3a5841c60538efb75416429031ed8e06155be..d5d9387c94fd95f9dd711fb5ed0283ed2b4d221a 100644 (file)
@@ -4,11 +4,8 @@
 !/.config/nvim/init.lua
 !/.config/nvim/keymaps.lua
 !/.config/nvim/options.lua
 !/.config/nvim/init.lua
 !/.config/nvim/keymaps.lua
 !/.config/nvim/options.lua
-<<<<<<< HEAD
 !/.config/nvim/plugin/ale.lua
 !/.config/nvim/plugin/highlight-yank.lua
 !/.config/nvim/plugin/ale.lua
 !/.config/nvim/plugin/highlight-yank.lua
-=======
->>>>>>> 27ab3a2 (Import options from vimrc)
 !/.config/nvim/plugin/listmode.lua
 !/.config/nvim/plugin/lspconfig.lua
 !/.config/nvim/plugin/vim-artesanal.lua
 !/.config/nvim/plugin/listmode.lua
 !/.config/nvim/plugin/lspconfig.lua
 !/.config/nvim/plugin/vim-artesanal.lua