From b6deb4cf8e138156fe43616e3dc9b2b9dad1feec Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.uk> Date: Thu, 13 Jan 2022 00:16:27 +0000 Subject: [PATCH] chore(nvim): set global vim variable in Lua --- roles/neovim/files/lua/opdavies/lsp/init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/neovim/files/lua/opdavies/lsp/init.lua b/roles/neovim/files/lua/opdavies/lsp/init.lua index dbf65336..ab676d64 100644 --- a/roles/neovim/files/lua/opdavies/lsp/init.lua +++ b/roles/neovim/files/lua/opdavies/lsp/init.lua @@ -10,7 +10,6 @@ local servers = { bashls = true, cssls = true, html = true, - sumneko_lua = true, tsserver = true, vuels = true, yamlls = true, @@ -19,6 +18,16 @@ local servers = { filetypes = { "php", "module", "test", "inc" }, }, + sumneko_lua = { + settings = { + Lua = { + diagnostics = { + globals = { "vim" }, + } + } + } + }, + tailwindcss = { filetypes = { "html", "html.twig" }, },