diff --git a/init.lua b/init.lua index 48b28f5..d47e897 100644 --- a/init.lua +++ b/init.lua @@ -1,17 +1,17 @@ --[[ -My simple(TM) Neovim configuration. Made from scratch, inspired by +My simple Neovim configuration. Made from scratch, inspired by https://www.youtube.com/watch?v=w7i4amO_zaE NOTE: EXTERNAL DEPENDENCIES MACOS - ripgrep (https://github.com/BurntSushi/ripgrep, used by telescope) - fd (https://github.com/sharkdp/fd, used by telescope) -- A Nerd font (https://www.nerdfonts.com/, used by various plugins) +- A Nerd font (https://www.nerdfonts.com/, used by nvim-web-devicons) NOTE: EXTERNAL DEPENDENCIES WINDOWS See https://blog.nikfp.com/how-to-install-and-set-up-neovim-on-windows - ripgrep (https://github.com/BurntSushi/ripgrep, used by telescope) - fd (https://github.com/sharkdp/fd, used by telescope) -- A Nerd font (https://www.nerdfonts.com/, used by various plugins) +- A Nerd font (https://www.nerdfonts.com/, used by nvim-web-devicons) - nodejs-lts (used for npm to install prettier) - then run "npm i -g npm" - zig, wget, unzip, git, fzf diff --git a/lua/weeheavy/remap.lua b/lua/weeheavy/remap.lua index fd07fd2..97dfdb0 100644 --- a/lua/weeheavy/remap.lua +++ b/lua/weeheavy/remap.lua @@ -102,29 +102,24 @@ end, { desc = "Format file or range (in visual mode)" }) -- Toggle zen-mode.nvim vim.keymap.set("n", "z", ":ZenMode") --- Go to next diagnostic item (any severity) +-- Got to next diagnostic item (any severity) vim.keymap.set({ "n", "v" }, "da", function() vim.diagnostic.goto_next({}) vim.api.nvim_feedkeys("zz", "n", false) end, { desc = "Go to next diagnostic" }) --- Go to next diagnostic item (error severity) +-- Got to next diagnostic item (error severity) vim.keymap.set({ "n", "v" }, "de", function() vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR }) vim.api.nvim_feedkeys("zz", "n", false) end, { desc = "Go to next error diagnostic" }) --- Go to next diagnostic item (warning severity) +-- Got to next diagnostic item (warning severity) vim.keymap.set({ "n", "v" }, "dw", function() vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.WARN }) vim.api.nvim_feedkeys("zz", "n", false) end, { desc = "Go to next warning diagnostic" }) --- Toggle LSP diagnostics -vim.keymap.set({ "n", "v" }, "dd", function() - vim.diagnostic.enable(not vim.diagnostic.is_enabled()) -end, { desc = "Turn diagnostics on/off" }) - -- Toggle trouble (for document) --vim.keymap.set("n", "qq", ":TroubleToggle") --vim.keymap.set("n", "qq", "Trouble diagnostics toggle")