From 23c1addc1481376d02c44ac51b95da1fb933d749 Mon Sep 17 00:00:00 2001 From: Holger Preu Date: Mon, 2 Mar 2026 20:11:21 +0100 Subject: [PATCH] more claude fixes --- lua/holger/lsp.lua | 2 +- lua/holger/plugins/alpha.lua | 7 ++++++- lua/holger/plugins/which-key.lua | 6 +----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lua/holger/lsp.lua b/lua/holger/lsp.lua index 1031d33..eb48039 100644 --- a/lua/holger/lsp.lua +++ b/lua/holger/lsp.lua @@ -48,7 +48,7 @@ vim.api.nvim_create_autocmd("LspAttach", { keymap.set("n", "K", vim.lsp.buf.hover, opts) -- show documentation for what is under cursor opts.desc = "Restart LSP" - keymap.set("n", "rs", ":LspRestart", opts) -- mapping to restart lsp if necessary + keymap.set("n", "rs", "LspRestart", opts) -- mapping to restart lsp if necessary end, }) diff --git a/lua/holger/plugins/alpha.lua b/lua/holger/plugins/alpha.lua index e5faac0..04893e8 100644 --- a/lua/holger/plugins/alpha.lua +++ b/lua/holger/plugins/alpha.lua @@ -31,6 +31,11 @@ return { alpha.setup(dashboard.opts) -- Disable folding on alpha buffer - vim.cmd([[autocmd FileType alpha setlocal nofoldenable]]) + vim.api.nvim_create_autocmd("FileType", { + pattern = "alpha", + callback = function() + vim.opt_local.foldenable = false + end, + }) end, } diff --git a/lua/holger/plugins/which-key.lua b/lua/holger/plugins/which-key.lua index 9ddfba1..2788a6f 100644 --- a/lua/holger/plugins/which-key.lua +++ b/lua/holger/plugins/which-key.lua @@ -1,9 +1,5 @@ return { "folke/which-key.nvim", event = "VeryLazy", - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - }, + opts = {}, }