summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIhsan Tonuzi <115842560+iton0@users.noreply.github.com>2024-07-28 17:39:34 -0400
committerGitHub <noreply@github.com>2024-07-28 17:39:34 -0400
commitee71259ccd892a49ce3bb68d7b80527f4707f658 (patch)
tree3c63b5ca1b1d1f1fdba9fa10a8fcdbd3004af9b7
parent90f6c5ed1bbcb23af49bc2d60625d6701babc366 (diff)
downloaddots-ee71259ccd892a49ce3bb68d7b80527f4707f658.tar.gz
refactor: remove lazydev and luvit-meta as lsp dependencies (#1047)
-rw-r--r--nvim/init.lua31
1 files changed, 16 insertions, 15 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index d4d7b8c..5f442b6 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -399,7 +399,22 @@ require('lazy').setup({
end,
},
- { -- LSP Configuration & Plugins
+ -- LSP Plugins
+ {
+ -- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
+ -- used for completion, annotations and signatures of Neovim apis
+ 'folke/lazydev.nvim',
+ ft = 'lua',
+ opts = {
+ library = {
+ -- Load luvit types when the `vim.uv` word is found
+ { path = 'luvit-meta/library', words = { 'vim%.uv' } },
+ },
+ },
+ },
+ { 'Bilal2453/luvit-meta', lazy = true },
+ {
+ -- Main LSP Configuration
'neovim/nvim-lspconfig',
dependencies = {
-- Automatically install LSPs and related tools to stdpath for Neovim
@@ -410,20 +425,6 @@ require('lazy').setup({
-- Useful status updates for LSP.
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} },
-
- -- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
- -- used for completion, annotations and signatures of Neovim apis
- {
- 'folke/lazydev.nvim',
- ft = 'lua',
- opts = {
- library = {
- -- Load luvit types when the `vim.uv` word is found
- { path = 'luvit-meta/library', words = { 'vim%.uv' } },
- },
- },
- },
- { 'Bilal2453/luvit-meta', lazy = true },
},
config = function()
-- Brief aside: **What is LSP?**