Files
dotfiles/nvim/.config/nvim/lua/plugins/lazydev.lua
T

41 lines
1.1 KiB
Lua

-- lazydev.lua: Streamlines Neovim plugin management and dependency loading.
return {
{
"folke/lazydev.nvim",
ft = "lua",
dependencies = {
"Bilal2453/luvit-meta",
},
opts = {
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = "luvit-meta/library", words = { "vim%.uv" } },
-- Load LazyVim types when the `LazyVim` word is found
{ path = "LazyVim", words = { "LazyVim" } },
-- Add nvim-navic to library for completions
{ path = "nvim-navic", words = { "navic" } },
-- Add barbecue to library
{ path = "barbecue.nvim", words = { "barbecue" } },
},
-- Enable type checking
enabled = function(root_dir)
return vim.g.lazydev_enabled == nil and true or vim.g.lazydev_enabled
end,
-- Disable integration with cmp
integrations = {
-- Enable lspconfig integration
lspconfig = true,
-- Enable cmp integration
cmp = true,
-- Enable coq integration
coq = false,
},
},
},
{
"Bilal2453/luvit-meta",
lazy = true,
},
}