Skip to content

Commit 4b81900

Browse files
committed
fix(lsp): correct variable name in lsp config loop
Signed-off-by: Umut Sahin Onder <[email protected]>
1 parent f70dcb3 commit 4b81900

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ require('lazy').setup({
290290
-- Then, because we use the `opts` key (recommended), the configuration runs
291291
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
292292

293-
{ -- Useful plugin to show you pending keybinds.
293+
{ -- Useful plugin to show you pending keybinds.
294294
'folke/which-key.nvim',
295295
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
296296
opts = {
@@ -371,7 +371,7 @@ require('lazy').setup({
371371
{ 'nvim-telescope/telescope-ui-select.nvim' },
372372

373373
-- Useful for getting pretty icons, but requires a Nerd Font.
374-
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
374+
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
375375
},
376376
config = function()
377377
-- Telescope is a fuzzy finder that comes with a lot of different things that
@@ -479,7 +479,7 @@ require('lazy').setup({
479479
'WhoIsSethDaniel/mason-tool-installer.nvim',
480480

481481
-- Useful status updates for LSP.
482-
{ 'j-hui/fidget.nvim', opts = {} },
482+
{ 'j-hui/fidget.nvim', opts = {} },
483483

484484
-- Allows extra capabilities provided by blink.cmp
485485
'saghen/blink.cmp',
@@ -719,8 +719,8 @@ require('lazy').setup({
719719
-- by the server configuration above. Useful when disabling
720720
-- certain features of an LSP (for example, turning off formatting for ts_ls)
721721
config.capabilities = vim.tbl_deep_extend('force', {}, capabilities, config.capabilities or {})
722-
vim.lsp.config(name, config)
723-
vim.lsp.enable(name)
722+
vim.lsp.config(server, config)
723+
vim.lsp.enable(server)
724724
end
725725
else
726726
-- For Neovim 0.10 and below, use mason-lspconfig for setup

0 commit comments

Comments
 (0)