feat(nvim): extend neodev coverage to /tmp

This commit is contained in:
Price Hiller 2023-07-28 04:59:15 -05:00
parent ebf351675d
commit 47b54ce96e
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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 = {