Compare commits
2 commits
a5a6626d12
...
61a2dbde99
| Author | SHA1 | Date | |
|---|---|---|---|
| 61a2dbde99 | |||
| 3aaa99288e |
2 changed files with 11 additions and 6 deletions
6
init.lua
6
init.lua
|
|
@ -1,17 +1,17 @@
|
|||
--[[
|
||||
My simple Neovim configuration. Made from scratch, inspired by
|
||||
My simple(TM) 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 nvim-web-devicons)
|
||||
- A Nerd font (https://www.nerdfonts.com/, used by various plugins)
|
||||
|
||||
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 nvim-web-devicons)
|
||||
- A Nerd font (https://www.nerdfonts.com/, used by various plugins)
|
||||
- nodejs-lts (used for npm to install prettier)
|
||||
- then run "npm i -g npm"
|
||||
- zig, wget, unzip, git, fzf
|
||||
|
|
|
|||
|
|
@ -102,24 +102,29 @@ end, { desc = "Format file or range (in visual mode)" })
|
|||
-- Toggle zen-mode.nvim
|
||||
vim.keymap.set("n", "<leader>z", ":ZenMode<CR>")
|
||||
|
||||
-- Got to next diagnostic item (any severity)
|
||||
-- Go to next diagnostic item (any severity)
|
||||
vim.keymap.set({ "n", "v" }, "<leader>da", function()
|
||||
vim.diagnostic.goto_next({})
|
||||
vim.api.nvim_feedkeys("zz", "n", false)
|
||||
end, { desc = "Go to next diagnostic" })
|
||||
|
||||
-- Got to next diagnostic item (error severity)
|
||||
-- Go to next diagnostic item (error severity)
|
||||
vim.keymap.set({ "n", "v" }, "<leader>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" })
|
||||
|
||||
-- Got to next diagnostic item (warning severity)
|
||||
-- Go to next diagnostic item (warning severity)
|
||||
vim.keymap.set({ "n", "v" }, "<leader>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" }, "<leader>dd", function()
|
||||
vim.diagnostic.enable(not vim.diagnostic.is_enabled())
|
||||
end, { desc = "Turn diagnostics on/off" })
|
||||
|
||||
-- Toggle trouble (for document)
|
||||
--vim.keymap.set("n", "<leader>qq", ":TroubleToggle<CR>")
|
||||
--vim.keymap.set("n", "<leader>qq", "<cmd>Trouble diagnostics toggle<cr>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue