aboutsummaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/lua/plugins/lsp.lua14
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({