aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Antonio Calliari Filho <69800805+luizcalliari@users.noreply.github.com>2023-03-07 22:36:27 -0300
committerGitHub <noreply@github.com>2023-03-07 22:36:27 -0300
commitc975e0346a8569390b16bf81910a96c714d425a9 (patch)
tree22ad4bab45e5d1e270bbb2bd8712499db12220fa
parent66dc5b896d47ed58e9821b8b39588ce431bfd83a (diff)
parent4a37a0a9b1d53fd355637256ac975c619226fb6d (diff)
Merge branch 'nvim-lua:master' into master
-rw-r--r--README.md6
-rw-r--r--init.lua8
2 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index 75c24d8..ce72ebb 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,9 @@ This will automatically install `nvim-autopairs` and enable it on startup. For m
In the file: `lua/custom/plugins/filetree.lua`, add:
```lua
+-- Unless you are still migrating, remove the deprecated commands from v1.x
+vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
+
return {
"nvim-neo-tree/neo-tree.nvim",
version = "*",
@@ -73,9 +76,6 @@ return {
"MunifTanjim/nui.nvim",
},
config = function ()
- -- Unless you are still migrating, remove the deprecated commands from v1.x
- vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
-
require('neo-tree').setup {}
end,
}
diff --git a/init.lua b/init.lua
index 9ce29c6..e3ddbd2 100644
--- a/init.lua
+++ b/init.lua
@@ -356,10 +356,10 @@ require('nvim-treesitter.configs').setup {
}
-- Diagnostic keymaps
-vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
-vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
-vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float)
-vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist)
+vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" })
+vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" })
+vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = "Open floating diagnostic message" })
+vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = "Open diagnostics list" })
-- LSP settings.
-- This function gets run when an LSP connects to a particular buffer.