aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:03 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:03 +0100
commit7670942d3adea6e84649d7608528210a80008cff (patch)
tree750b32922e7f93fa8a1a9a1ccdfeeb31cee8acea
parent14697b691401f200f32e70b1ecb5a8b98b2d4102 (diff)
downloaddotfiles-7670942d3adea6e84649d7608528210a80008cff.tar.gz
dotfiles-7670942d3adea6e84649d7608528210a80008cff.tar.bz2
dotfiles-7670942d3adea6e84649d7608528210a80008cff.zip
style(nvim): replace verbose kickstart comments with concise ones
Multi-line tutorial comments explaining CursorHold and inlay hints are unnecessary for the config author. Replaced with one-liners.
-rw-r--r--home/.config/nvim/after/plugin/autocmds.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/home/.config/nvim/after/plugin/autocmds.lua b/home/.config/nvim/after/plugin/autocmds.lua
index 9bbbdad..1db318d 100644
--- a/home/.config/nvim/after/plugin/autocmds.lua
+++ b/home/.config/nvim/after/plugin/autocmds.lua
@@ -136,11 +136,7 @@ autocmd("LspAttach", {
nmap("<c-]>", vim.lsp.buf.definition, "Goto definition")
nmap("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
- -- The following two autocommands are used to highlight references of the
- -- word under your cursor when your cursor rests there for a little while.
- -- See `:help CursorHold` for information about when this is executed
- --
- -- When you move your cursor, the highlights will be cleared (the second autocommand).
+ -- Highlight references under cursor
local client = vim.lsp.get_client_by_id(event.data.client_id)
if
client
@@ -192,10 +188,7 @@ autocmd("LspAttach", {
)
end
- -- The following code creates a keymap to toggle inlay hints in your
- -- code, if the language server you are using supports them
- --
- -- This may be unwanted, since they displace some of your code
+ -- Toggle inlay hints
if
client
and client:supports_method(