feat(nvim): extend neodev to support exrc files

This commit is contained in:
Price Hiller 2023-08-18 22:48:53 -05:00
parent 5f212352b2
commit 0d5b1968a7
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -314,10 +314,18 @@ return {
-- NOTE: LUA LSP
require("neodev").setup({
override = function(root_dir, library)
local cur_file = vim.api.nvim_buf_get_name(0)
if root_dir:find("/tmp", 1, true) == 1 then
library.enabled = true
library.plugins = true
end
if cur_file:find("%.nvim%.lua") ~= nil then
library.enabled = true
library.plugins = true
end
end,
})