From 8fbaa86fca0784dbae03d4513345c6b9c9e573ed Mon Sep 17 00:00:00 2001 From: RayHammer Date: Fri, 12 May 2023 20:57:41 +0200 Subject: Made the Lua workspace library leaner --- lua/init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/init.lua b/lua/init.lua index 6996a9d..96d7d34 100644 --- a/lua/init.lua +++ b/lua/init.lua @@ -105,11 +105,17 @@ local configs_custom = { }, diagnostics = { -- Get the language server to recognize the `vim` global - globals = {'vim'}, + -- globals = {'vim'}, }, workspace = { -- Make the server aware of Neovim runtime files - library = vim.api.nvim_get_runtime_file("", true), + library = { + "/etc/xdg/nvim", + "/home/rayhammer/.local/share/nvim/site", + "/usr/share/nvim/runtime", + "/usr/lib/nvim", + "/usr/share/vim/vimfiles", + } }, }, } -- cgit v1.2.3