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, })