mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
chore: move plugins to an upper level
This commit is contained in:
parent
9569774c7b
commit
99bcb4ca97
50 changed files with 69 additions and 69 deletions
59
lua/plugins/env.lua
Normal file
59
lua/plugins/env.lua
Normal file
|
@ -0,0 +1,59 @@
|
|||
local M = {
|
||||
{
|
||||
"laytan/cloak.nvim",
|
||||
config = function()
|
||||
require("cloak").setup({
|
||||
cloak_character = "*",
|
||||
highlight_group = "Comment",
|
||||
patterns = {
|
||||
{
|
||||
file_pattern = {
|
||||
".env*",
|
||||
"wrangler.toml",
|
||||
".dev.vars",
|
||||
},
|
||||
cloak_pattern = "=.+",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
nmap("<Leader>cc", ":CloakToggle<cr>")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"philosofonusus/ecolog.nvim",
|
||||
keys = {
|
||||
{ "<leader>ge", "<cmd>EcologGoto<cr>", desc = "Go to env file" },
|
||||
{ "<leader>ep", "<cmd>EcologPeek<cr>", desc = "Ecolog peek variable" },
|
||||
{ "<leader>es", "<cmd>EcologSelect<cr>", desc = "Switch env file" },
|
||||
},
|
||||
-- Lazy loading is done internally
|
||||
lazy = false,
|
||||
opts = {
|
||||
integrations = {
|
||||
blink_cmp = true,
|
||||
},
|
||||
-- Enables shelter mode for sensitive values
|
||||
shelter = {
|
||||
configuration = {
|
||||
partial_mode = false, -- false by default, disables partial mode, for more control check out shelter partial mode
|
||||
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
|
||||
},
|
||||
},
|
||||
-- true by default, enables built-in types (database_url, url, etc.)
|
||||
types = true,
|
||||
path = vim.fn.getcwd(), -- Path to search for .env files
|
||||
preferred_environment = "development", -- Optional: prioritize specific env files
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
M.config = function() end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue