Skip to content

Commit 944224a

Browse files
iton0ottoreimers
authored andcommitted
refactor: remove lazydev and luvit-meta as lsp dependencies (nvim-lua#1047)
1 parent a698e29 commit 944224a

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
@@ -313,7 +313,22 @@ require('lazy').setup({
313313
end,
314314
},
315315

316-
{ -- LSP Configuration & Plugins
316+
-- LSP Plugins
317+
{
318+
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
319+
-- used for completion, annotations and signatures of Neovim apis
320+
'folke/lazydev.nvim',
321+
ft = 'lua',
322+
opts = {
323+
library = {
324+
-- Load luvit types when the `vim.uv` word is found
325+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
326+
},
327+
},
328+
},
329+
{ 'Bilal2453/luvit-meta', lazy = true },
330+
{
331+
-- Main LSP Configuration
317332
'neovim/nvim-lspconfig',
318333
dependencies = {
319334
-- Automatically install LSPs and related tools to stdpath for Neovim
@@ -324,20 +339,6 @@ require('lazy').setup({
324339
-- Useful status updates for LSP.
325340
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
326341
{ 'j-hui/fidget.nvim', opts = {} },
327-
328-
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
329-
-- used for completion, annotations and signatures of Neovim apis
330-
{
331-
'folke/lazydev.nvim',
332-
ft = 'lua',
333-
opts = {
334-
library = {
335-
-- Load luvit types when the `vim.uv` word is found
336-
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
337-
},
338-
},
339-
},
340-
{ 'Bilal2453/luvit-meta', lazy = true },
341342
},
342343
config = function()
343344
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)