Skip to content

Commit 199e701

Browse files
Fix: Prevent mason-lspconfig crash + highlight key fix
1. Fix mason-lspconfig crash Explicitly sets: automatic_enable = false This prevents a known issue in recent versions of mason-lspconfig where a nil `enable()` function causes a crash. Keeping this disabled in Kickstart improves stability for new users. 2. Fix highlight key typo A previous commit changed `highlight` to `hl` in the `on_yank` autocmd, but related code still used `highlight`, causing inconsistency. This commit restores consistency. Feel free to revise the preferred style.
1 parent 3338d39 commit 199e701

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
215215
desc = 'Highlight when yanking (copying) text',
216216
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
217217
callback = function()
218-
vim.hl.on_yank()
218+
vim.highlight.on_yank()
219219
end,
220220
})
221221

@@ -722,6 +722,7 @@ require('lazy').setup({
722722
require('mason-lspconfig').setup {
723723
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
724724
automatic_installation = false,
725+
automatic_enable = false,
725726
handlers = {
726727
function(server_name)
727728
local server = servers[server_name] or {}

0 commit comments

Comments
 (0)