diff --git a/init.lua b/init.lua index 0e732c0..46a7335 100644 --- a/init.lua +++ b/init.lua @@ -22,5 +22,4 @@ require("setup/lualine") require("setup/bufferline") require("setup/nvim-cmp") require("setup/lsp") - - +require("setup/toggle-diagnostics") diff --git a/lazy-lock.json b/lazy-lock.json index 9a98be0..1564ddc 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,6 @@ { "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, - "LuaSnip": { "branch": "master", "commit": "8ae1dedd988eb56441b7858bd1e8554dfadaa46d" }, + "LuaSnip": { "branch": "master", "commit": "a7a4b4682c4b3e2ba82b82a4e6e5f5a0e79dec32" }, "bufferline.nvim": { "branch": "main", "commit": "64e2c5def50dfd6b6f14d96a45fa3d815a4a1eef" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" }, @@ -11,17 +11,18 @@ "gruvbox.nvim": { "branch": "main", "commit": "6e4027ae957cddf7b193adfaec4a8f9e03b4555f" }, "lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" }, "lualine.nvim": { "branch": "master", "commit": "8b56462bfb746760465264de41b4907310f113ec" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "55716a879568a498fa236593c8119789054a3b8e" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "21d33d69a81f6351e5a5f49078b2e4f0075c8e73" }, "mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" }, - "neo-tree.nvim": { "branch": "v3.x", "commit": "7f2ebdef3b55374390714ac7c0a7fe6b0dae498a" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "bce454018b1570153262eecab8a7546becce2274" }, "nui.nvim": { "branch": "main", "commit": "756c59f46057cd2d43619cd3a6d4e01b2aa60295" }, "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-lint": { "branch": "master", "commit": "e824adb9bc01647f71e55457353a68f0f37f9931" }, - "nvim-lspconfig": { "branch": "master", "commit": "1917b562a02f20885900b1da0f0ea25028ccedab" }, - "nvim-treesitter": { "branch": "master", "commit": "488bec03254207b1dd071be8cb1fb78434b6e777" }, + "nvim-lspconfig": { "branch": "master", "commit": "16295b79410f131c4fa7870c663b4ace6a761fb2" }, + "nvim-treesitter": { "branch": "master", "commit": "7ff51f53b0efb6228df2e8539b51bb2e737b77f3" }, "nvim-web-devicons": { "branch": "master", "commit": "75df79feb02d5e0ec114e447453775d4d291ea03" }, "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" }, "rose-pine": { "branch": "main", "commit": "a29b09d15a9ef5cd575fbe5ae2a3cfb854876caf" }, + "toggle-lsp-diagnostics.nvim": { "branch": "main", "commit": "4fbfb51e3902d17613be0bc03035ce26b9a8d05d" }, "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" }, "vim-pencil": { "branch": "master", "commit": "6d70438a8886eaf933c38a7a43a61adb0a7815ed" }, "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, diff --git a/lua/keymaps.lua b/lua/keymaps.lua index df198b8..417c018 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -12,6 +12,7 @@ vim.g.mapleader = " " map("n", "+", ":bNext") --switch tabs map("n", "n", ":Neotree toggle") --open Nerdtree map("n", "z", ":ZenMode") --open ZenMode (distraction-free) +map("n", "d", ":ToggleDiag") -- toggle all diagnostics diff --git a/lua/plugins.lua b/lua/plugins.lua index f9c8523..ec74aee 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -67,5 +67,7 @@ return { ---## LINTING ---##################################################################### "mfussenegger/nvim-lint", + "WhoIsSethDaniel/toggle-lsp-diagnostics.nvim" + } diff --git a/lua/setup/toggle-diagnostics.lua b/lua/setup/toggle-diagnostics.lua new file mode 100644 index 0000000..f428abb --- /dev/null +++ b/lua/setup/toggle-diagnostics.lua @@ -0,0 +1,3 @@ +require('toggle_lsp_diagnostics').init({ + start_on = false, +}) diff --git a/~/.vim/undodir/%data%data%com.termux%files%home%.local%state%nvim%mason.log b/~/.vim/undodir/%data%data%com.termux%files%home%.local%state%nvim%mason.log new file mode 100644 index 0000000..0730bbc Binary files /dev/null and b/~/.vim/undodir/%data%data%com.termux%files%home%.local%state%nvim%mason.log differ diff --git a/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%init.lua b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%init.lua new file mode 100644 index 0000000..9854214 Binary files /dev/null and b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%init.lua differ diff --git a/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%keymaps.lua b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%keymaps.lua new file mode 100644 index 0000000..0d78f49 Binary files /dev/null and b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%keymaps.lua differ diff --git a/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%plugins.lua b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%plugins.lua new file mode 100644 index 0000000..230963c Binary files /dev/null and b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%plugins.lua differ diff --git a/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%setup%toggle-diagnostics.lua b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%setup%toggle-diagnostics.lua new file mode 100644 index 0000000..834829f Binary files /dev/null and b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%setup%toggle-diagnostics.lua differ diff --git a/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%toggle-diagnostics.lua b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%toggle-diagnostics.lua new file mode 100644 index 0000000..a31254b Binary files /dev/null and b/~/.vim/undodir/%data%data%com.termux%files%home%ajs-nvim%lua%toggle-diagnostics.lua differ