all repos

init.lua @ 47b552b7058c4f5e536b4684be812b88f380cc16

my nvim config
2 files changed, 30 insertions(+), 13 deletions(-)
refactor(lazydev): move its config into sep file
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-02-11 21:28:48 +0200
Parent: cf87699
M lua/plugins/lsp/init.lua

@@ -1,3 +1,4 @@

+---@type LazySpec return { "neovim/nvim-lspconfig", event = "BufRead",

@@ -15,19 +16,7 @@ },

}, }, }, - { - "folke/lazydev.nvim", - ft = "lua", - cmd = "LazyDev", - dependencies = { "nvim-lspconfig", "Bilal2453/luvit-meta" }, - opts = { - library = { - { path = "luvit-meta/library", words = { "vim%.uv" } }, - { path = "mini.test", words = { "MiniTest" } }, - "lazy.nvim", - }, - }, - }, + { import = "plugins.lsp.lazydev" }, { import = "plugins.lsp.null-ls" }, { "RRethy/vim-illuminate",
A lua/plugins/lsp/lazydev.lua

@@ -0,0 +1,28 @@

+---@type LazySpec +return { + "folke/lazydev.nvim", + ft = "lua", + cmd = "LazyDev", + dependencies = { + "nvim-lspconfig", + { + "nvim-cmp", + opts = function(_, opts) + table.insert(opts.sources, 1, { + name = "lazydev", + group_index = 0, + }) + end, + }, + }, + ---@module "lazydev" + ---@type lazydev.Config + opts = { + library = { + { path = "${3rd}/luv/library", words = { "vim%.uv" } }, + { path = "mini.test", words = { "MiniTest" } }, + { path = "mini.ai", words = { "MiniAI" } }, + "lazy.nvim", + }, + }, +}