From 47b54ce96e9f1105dc9899b96da50f96c55cd01f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 28 Jul 2023 04:59:15 -0500 Subject: [PATCH] feat(nvim): extend neodev coverage to /tmp --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index e72c13a1..cf668c2c 100755 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -152,7 +152,14 @@ lspconfig.ansiblels.setup({ }) -- NOTE: LUA LSP -require("neodev").setup({}) +require("neodev").setup({ + override = function(root_dir, library) + if root_dir:find("/tmp", 1, true) == 1 then + library.enabled = true + library.plugins = true + end + end, +}) lspconfig.lua_ls.setup({ settings = {