From 0d5b1968a73dc86e3cef462453b407952d43b604 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 18 Aug 2023 22:48:53 -0500 Subject: [PATCH] feat(nvim): extend neodev to support exrc files --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index 5d7aa311..83b9ed18 100644 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -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, })