From 7a2647d5aee40b9467d4bc000e902accba9da020 Mon Sep 17 00:00:00 2001 From: materus Date: Wed, 25 Mar 2026 21:18:58 +0100 Subject: [PATCH] Add more neovim plugins --- config/editor/neovim/lua/materus/init.lua | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/config/editor/neovim/lua/materus/init.lua b/config/editor/neovim/lua/materus/init.lua index 925e681..0547473 100644 --- a/config/editor/neovim/lua/materus/init.lua +++ b/config/editor/neovim/lua/materus/init.lua @@ -26,6 +26,31 @@ if vim.fn.executable("git") == 1 then local opts = {} local plugins = { + { + "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 = "${3rd}/luv/library", words = { "vim%.uv" } }, + }, + }, + }, + { -- optional cmp 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, + }, + + { + 'https://github.com/neovim/nvim-lspconfig' + }, { 'stevearc/oil.nvim', ---@module 'oil'