From 1c90b85787b659d8cc0e1bb35a2a6aed185cdd47 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Wed, 25 Dec 2024 00:41:24 -0500 Subject: Add lazydev plugin --- nvim/lua/plugins/lsp.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index f52cced..418f03b 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -1,9 +1,19 @@ +local lazydev = { + "folke/lazydev.nvim", + ft = "lua", + opts = { + library = { + { path = "${3rd}/luv/library", words = { "vim%.uv" } }, + }, + }, +} local lspconfig = { 'neovim/nvim-lspconfig', lazy = false, dependencies = { 'williamboman/mason.nvim', - 'williamboman/mason-lspconfig.nvim' + 'williamboman/mason-lspconfig.nvim', + lazydev }, config = function() vim.api.nvim_create_autocmd("LspAttach", { @@ -110,7 +120,7 @@ local mason_lspconfig = { } }) end, - ["html"] = function () + ["html"] = function() local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true require('lspconfig').html.setup({ -- cgit v1.2.3