Skip to content

Commit 7b059be

Browse files
iton0monk3yd
authored andcommitted
refactor: remove lazydev and luvit-meta as lsp dependencies (nvim-lua#1047)
1 parent 847c67f commit 7b059be

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

init.lua

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,22 @@ require('lazy').setup({
471471
end,
472472
},
473473

474-
{ -- LSP Configuration & Plugins
474+
-- LSP Plugins
475+
{
476+
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
477+
-- used for completion, annotations and signatures of Neovim apis
478+
'folke/lazydev.nvim',
479+
ft = 'lua',
480+
opts = {
481+
library = {
482+
-- Load luvit types when the `vim.uv` word is found
483+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
484+
},
485+
},
486+
},
487+
{ 'Bilal2453/luvit-meta', lazy = true },
488+
{
489+
-- Main LSP Configuration
475490
'neovim/nvim-lspconfig',
476491
dependencies = {
477492
-- Automatically install LSPs and related tools to stdpath for Neovim
@@ -481,21 +496,7 @@ require('lazy').setup({
481496

482497
-- Useful status updates for LSP.
483498
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
484-
{ 'j-hui/fidget.nvim', tag = 'legacy', opts = {} },
485-
486-
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
487-
-- used for completion, annotations and signatures of Neovim apis
488-
{
489-
'folke/lazydev.nvim',
490-
ft = 'lua',
491-
opts = {
492-
library = {
493-
-- Load luvit types when the `vim.uv` word is found
494-
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
495-
},
496-
},
497-
},
498-
{ 'Bilal2453/luvit-meta', lazy = true },
499+
{ 'j-hui/fidget.nvim', opts = {} },
499500
},
500501
config = function()
501502
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)