diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-12-25 00:41:24 -0500 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-12-25 00:41:24 -0500 |
| commit | 1c90b85787b659d8cc0e1bb35a2a6aed185cdd47 (patch) | |
| tree | 434b109f39a3244dfbb5cef890571619e1a436c1 /nvim/lua/plugins/lsp.lua | |
| parent | b7f614b82b3d1fcbe0ca4814b8e06ac769ce1be6 (diff) | |
Add lazydev plugin
Diffstat (limited to 'nvim/lua/plugins/lsp.lua')
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 14 |
1 files changed, 12 insertions, 2 deletions
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({ |
