From 0b3ea1098a15c001baa063318d10c10d86692a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Thu, 19 Sep 2024 22:02:29 +0200 Subject: [PATCH] Added .luarc.json to get rid of warnings about missing global vim object --- .luarc.json | 3 +++ lua/lsp.lua | 1 - lua/options.lua | 13 +++++++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .luarc.json diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..a3e20ab --- /dev/null +++ b/.luarc.json @@ -0,0 +1,3 @@ +{ + "diagnostics.globals": ["vim"], +} diff --git a/lua/lsp.lua b/lua/lsp.lua index efa38ed..00849be 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -19,7 +19,6 @@ require('mason-lspconfig').setup({ 'gopls', 'pylsp', 'clangd', - -- 'volar', }, }) diff --git a/lua/options.lua b/lua/options.lua index 5b4880a..0e7929b 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,3 +1,10 @@ +--------------------------------------------------- +-- +-- Some general setup taken from some tutorial +-- which I have forgotten +-- +-------------------------------------------------- + -- Hint: use `:h