From 7670942d3adea6e84649d7608528210a80008cff Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:03 +0100 Subject: 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. --- home/.config/nvim/after/plugin/autocmds.lua | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'home/.config/nvim/after') 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("", 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( -- cgit v1.2.3-70-g09d2