From 8988caf18fd77f979da1f7cb11b5ff63b3966298 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 21 Oct 2024 15:47:21 -0500 Subject: [PATCH] feat(nvim): add `direnv.nvim` --- .../.config/nvim/lua/plugins/configs/direnv.lua | 13 +++++++++++++ .../dots/.config/nvim/lua/plugins/configs/lsp.lua | 1 + 2 files changed, 14 insertions(+) create mode 100644 users/price/dots/.config/nvim/lua/plugins/configs/direnv.lua diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/direnv.lua b/users/price/dots/.config/nvim/lua/plugins/configs/direnv.lua new file mode 100644 index 00000000..011b536a --- /dev/null +++ b/users/price/dots/.config/nvim/lua/plugins/configs/direnv.lua @@ -0,0 +1,13 @@ +return { + { + "actionshrimp/direnv.nvim", + lazy = false, + config = function() + local direnv = require("direnv-nvim") + -- TODO: Make this properly restart LSP clients as necessary + direnv.setup({ + async = true, + }) + end, + }, +} diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua index b7390356..4ceea0e2 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -161,6 +161,7 @@ return { { "neovim/nvim-lspconfig", dependencies = { + "actionshrimp/direnv.nvim", -- This ensures that direnv is loaded first "williamboman/mason.nvim", "Decodetalkers/csharpls-extended-lsp.nvim", {