Skip to content

Commit fd66454

Browse files
authored
refactor: remove lazydev and luvit-meta as lsp dependencies (#1047)
1 parent 1cef232 commit fd66454

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

init.lua

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,22 @@ require('lazy').setup({
399399
end,
400400
},
401401

402-
{ -- LSP Configuration & Plugins
402+
-- LSP Plugins
403+
{
404+
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
405+
-- used for completion, annotations and signatures of Neovim apis
406+
'folke/lazydev.nvim',
407+
ft = 'lua',
408+
opts = {
409+
library = {
410+
-- Load luvit types when the `vim.uv` word is found
411+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
412+
},
413+
},
414+
},
415+
{ 'Bilal2453/luvit-meta', lazy = true },
416+
{
417+
-- Main LSP Configuration
403418
'neovim/nvim-lspconfig',
404419
dependencies = {
405420
-- Automatically install LSPs and related tools to stdpath for Neovim
@@ -410,20 +425,6 @@ require('lazy').setup({
410425
-- Useful status updates for LSP.
411426
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
412427
{ 'j-hui/fidget.nvim', opts = {} },
413-
414-
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
415-
-- used for completion, annotations and signatures of Neovim apis
416-
{
417-
'folke/lazydev.nvim',
418-
ft = 'lua',
419-
opts = {
420-
library = {
421-
-- Load luvit types when the `vim.uv` word is found
422-
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
423-
},
424-
},
425-
},
426-
{ 'Bilal2453/luvit-meta', lazy = true },
427428
},
428429
config = function()
429430
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)