|
@@ -399,7 +399,22 @@ require('lazy').setup({
|
|
|
end,
|
|
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',
|
|
'neovim/nvim-lspconfig',
|
|
|
dependencies = {
|
|
dependencies = {
|
|
|
-- Automatically install LSPs and related tools to stdpath for Neovim
|
|
-- Automatically install LSPs and related tools to stdpath for Neovim
|
|
@@ -410,20 +425,6 @@ require('lazy').setup({
|
|
|
-- Useful status updates for LSP.
|
|
-- Useful status updates for LSP.
|
|
|
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
|
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
|
|
{ 'j-hui/fidget.nvim', opts = {} },
|
|
{ '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()
|
|
config = function()
|
|
|
-- Brief aside: **What is LSP?**
|
|
-- Brief aside: **What is LSP?**
|