added lazydev
This commit is contained in:
parent
f9365da441
commit
f5ae4bd731
27
lua/plugins/lazydev.lua
Normal file
27
lua/plugins/lazydev.lua
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
'folke/lazydev.nvim',
|
||||||
|
ft = 'lua', -- only load on lua files
|
||||||
|
opts = {
|
||||||
|
library = {
|
||||||
|
-- See the configuration section for more details
|
||||||
|
-- Load luvit types when the `vim.uv` word is found
|
||||||
|
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'Bilal2453/luvit-meta',
|
||||||
|
lazy = true
|
||||||
|
}, -- optional `vim.uv` typings
|
||||||
|
{ -- optional completion source for require statements and module annotations
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.sources = opts.sources or {}
|
||||||
|
table.insert(opts.sources, {
|
||||||
|
name = 'lazydev',
|
||||||
|
group_index = 0, -- set group index to 0 to skip loading LuaLS completions
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
@ -118,17 +118,12 @@ return {
|
|||||||
'williamboman/mason-lspconfig.nvim',
|
'williamboman/mason-lspconfig.nvim',
|
||||||
'p00f/clangd_extensions.nvim',
|
'p00f/clangd_extensions.nvim',
|
||||||
'jose-elias-alvarez/null-ls.nvim',
|
'jose-elias-alvarez/null-ls.nvim',
|
||||||
{
|
|
||||||
'folke/neodev.nvim',
|
|
||||||
},
|
|
||||||
'Fildo7525/pretty_hover',
|
'Fildo7525/pretty_hover',
|
||||||
},
|
},
|
||||||
build = ':MasonUpdate',
|
build = ':MasonUpdate',
|
||||||
version = nil,
|
version = nil,
|
||||||
branch = 'master',
|
branch = 'master',
|
||||||
config = function()
|
config = function()
|
||||||
require('neodev').setup({
|
|
||||||
})
|
|
||||||
require('mason').setup({
|
require('mason').setup({
|
||||||
ui = {
|
ui = {
|
||||||
border = 'rounded'
|
border = 'rounded'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user