From 4b819009392786f5c0f76a5846c18964aa0aa967 Mon Sep 17 00:00:00 2001 From: Umut Sahin Onder Date: Thu, 17 Apr 2025 17:17:26 +0200 Subject: [PATCH] fix(lsp): correct variable name in lsp config loop Signed-off-by: Umut Sahin Onder --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 69d3834a..bdcb9805 100644 --- a/init.lua +++ b/init.lua @@ -290,7 +290,7 @@ require('lazy').setup({ -- Then, because we use the `opts` key (recommended), the configuration runs -- after the plugin has been loaded as `require(MODULE).setup(opts)`. - { -- Useful plugin to show you pending keybinds. + { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' opts = { @@ -371,7 +371,7 @@ require('lazy').setup({ { 'nvim-telescope/telescope-ui-select.nvim' }, -- Useful for getting pretty icons, but requires a Nerd Font. - { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, + { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, }, config = function() -- Telescope is a fuzzy finder that comes with a lot of different things that @@ -479,7 +479,7 @@ require('lazy').setup({ 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP. - { 'j-hui/fidget.nvim', opts = {} }, + { 'j-hui/fidget.nvim', opts = {} }, -- Allows extra capabilities provided by blink.cmp 'saghen/blink.cmp', @@ -719,8 +719,8 @@ require('lazy').setup({ -- by the server configuration above. Useful when disabling -- certain features of an LSP (for example, turning off formatting for ts_ls) config.capabilities = vim.tbl_deep_extend('force', {}, capabilities, config.capabilities or {}) - vim.lsp.config(name, config) - vim.lsp.enable(name) + vim.lsp.config(server, config) + vim.lsp.enable(server) end else -- For Neovim 0.10 and below, use mason-lspconfig for setup