summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-21 13:14:48 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-21 13:14:48 -0500
commitaf8e490bd900626638b5249d9184e83ac2734e53 (patch)
tree78ff1d00008a7ac569309afd0a0c9b9a00f545e4
parent015eb3bfc84495140f837ea1538eb210e1cbd17a (diff)
downloadnvim-config-af8e490bd900626638b5249d9184e83ac2734e53.tar.gz
nvim-config-af8e490bd900626638b5249d9184e83ac2734e53.tar.xz
Disable ale to remove doubled up diagnostics. Add option to toggle them on and off
-rw-r--r--init.lua18
-rw-r--r--plugin/packer_compiled.lua5
2 files changed, 17 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index 9b9795a..41c8443 100644
--- a/init.lua
+++ b/init.lua
@@ -81,7 +81,7 @@ require('packer').startup(function(use)
use 'lewis6991/gitsigns.nvim'
-- replacement for syntastic, seems to work okay out of the box
- use 'dense-analysis/ale'
+ -- use 'dense-analysis/ale'
use {
'nvim-lualine/lualine.nvim', -- status line
@@ -228,3 +228,19 @@ vim.api.nvim_create_user_command(
end,
{ nargs = 0 }
)
+
+-- Expose vim.diagnostic.enable/disable as a quick toggle ex command
+local diag = true
+vim.api.nvim_create_user_command(
+ 'DiagToggle',
+ function()
+ if diag then
+ vim.diagnostic.disable()
+ diag = false
+ else
+ vim.diagnostic.enable()
+ diag = true
+ end
+ end,
+ { nargs = 0 }
+)
diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua
index 23d724e..8b574ee 100644
--- a/plugin/packer_compiled.lua
+++ b/plugin/packer_compiled.lua
@@ -84,11 +84,6 @@ _G.packer_plugins = {
path = "/home/mitch/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip"
},
- ale = {
- loaded = true,
- path = "/home/mitch/.local/share/nvim/site/pack/packer/start/ale",
- url = "https://github.com/dense-analysis/ale"
- },
catppuccin = {
loaded = true,
path = "/home/mitch/.local/share/nvim/site/pack/packer/start/catppuccin",