]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/bundle/vim-lsp-ale/plugin/lsp_ale.vim

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:

Merge commit '294584081929424aec883f90c7d6515b3743358d' as '.vim/bundle/vim-lsp-ale'
[etc/vim.git] / .vim / bundle / vim-lsp-ale / plugin / lsp_ale.vim
diff --git a/.vim/bundle/vim-lsp-ale/plugin/lsp_ale.vim b/.vim/bundle/vim-lsp-ale/plugin/lsp_ale.vim
new file mode 100644 (file)
index 0000000..74ea929
--- /dev/null
@@ -0,0 +1,28 @@
+if (exists('g:loaded_lsp_ale') && g:loaded_lsp_ale) || &cp
+    finish
+endif
+let g:loaded_lsp_ale = 1
+
+let g:lsp_ale_diagnostics_severity = get(g:, 'lsp_ale_diagnostics_severity', 'information')
+let g:lsp_ale_auto_enable_linter = get(g:, 'lsp_ale_auto_enable_linter', v:true)
+
+if get(g:, 'lsp_ale_auto_config_vim_lsp', v:true)
+    " Enable diagnostics and disable all functionalities to show error
+    " messages by vim-lsp
+    let g:lsp_diagnostics_enabled = 1
+    let g:lsp_diagnostics_echo_cursor = 0
+    let g:lsp_diagnostics_float_cursor = 0
+    let g:lsp_diagnostics_highlights_enabled = 0
+    let g:lsp_diagnostics_signs_enabled = 0
+    let g:lsp_diagnostics_virtual_text_enabled = 0
+endif
+if get(g:, 'lsp_ale_auto_config_ale', v:true)
+    " Disable ALE's LSP integration
+    let g:ale_disable_lsp = 1
+endif
+
+augroup plugin-lsp-ale
+    autocmd!
+    autocmd User lsp_setup call lsp#ale#enable()
+    autocmd User ALEWantResults call lsp#ale#on_ale_want_results(g:ale_want_results_buffer)
+augroup END