From ed84e91a3ce7be50ff3cf84f6adcb103df97d0c2 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 11 Dec 2024 14:56:29 -0500 Subject: [PATCH] feat: add environment variable management support --- lua/plugins/coding.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 18a206e..df0bbf6 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -119,4 +119,34 @@ return { lazy = false, priority = 1000, }, + { + 'philosofonusus/ecolog.nvim', + dependencies = { + 'hrsh7th/nvim-cmp', -- Optional, for autocompletion support + }, + -- Optionally reccommend adding keybinds (I use them personally) + keys = { + { 'qge', 'EcologGoto', desc = 'Go to env file' }, + { 'qes', 'EcologSelect', desc = 'Switch env file' }, + { 'qep', 'EcologPeek', desc = 'Ecolog peek variable' }, + }, + lazy = false, + opts = { + -- Enables shelter mode for sensitive values + shelter = { + configuration = { + partial_mode = false, -- Disables partial mode see shelter configuration below + mask_char = '*', -- Character used for masking + }, + modules = { + cmp = true, -- Mask values in completion + peek = false, -- Mask values in peek view + files = false, -- Mask values in files + telescope = false, -- Mask values in telescope + }, + }, + path = vim.fn.getcwd(), -- Path to search for .env files + preferred_environment = 'development', -- Optional: prioritize specific env files + }, + }, }