9e58bb5e8d
docs: minor tweaks to README
...
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie81bda69615b3ee0fcf98f1125dcd0d46a6a6964
2026-01-27 10:22:11 +03:00
b07302cc27
handle empty exports gracefully; log in DEBUG level
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9c9914b380cb3fd7f7b7a73cba1e19a76a6a6964
2026-01-27 10:12:42 +03:00
6ae5456317
chore: tell luacheck that vim is a defined global
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9bb0435fc423784411d9493b46078fe36a6a6964
2026-01-27 10:12:41 +03:00
96d0f73eed
Merge pull request #17 from refractalize/refresh-status-after-edit
...
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
refresh status after edit
2026-01-21 14:49:39 +03:00
Tim Macfarlane
111bbd921f
refresh status after edit
2026-01-21 09:33:49 +01:00
ac9a7d501f
chore: format with stylua
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib77f8945f0a21484435db29cf7897a8c6a6a6964
2026-01-20 17:48:35 +03:00
b9c1cac9a5
specify direnv v2.33 requirement
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I070fd364adb5d8c64240d8681d8360916a6a6964
2026-01-20 17:48:31 +03:00
2238a611b9
Merge pull request #16 from refractalize/direnv-export-json
...
use direnv export json for multiline env vars
2026-01-20 14:05:44 +03:00
Tim Macfarlane
f2533e2d55
use direnv export json for multiline env vars
2026-01-20 10:43:39 +01:00
ecd3bd4898
Merge pull request #13 from Skyppex/main
...
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
feat: allow user to disable default keybindings
2026-01-07 00:40:31 +03:00
Brage Ingebrigtsen
b815adc8a0
fix(keybinds): handle if keybindings are set to true
2025-10-22 14:08:26 +02:00
Brage Ingebrigtsen
1995605471
feat(keybinds): allow keybindings to be set to false to disable default keybindings
2025-10-22 14:05:51 +02:00
4dfc8758a1
make cache_ttl configurable
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
2025-06-09 14:04:09 +03:00
fc17d1aa6b
honor silent_autoload for initialization message
2025-06-09 13:42:54 +03:00
eab8a55ea8
add request deduplication to prevent concurrent direnv status calls
...
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
We would like to prevent multiple simultaneous direnv status requests, which
we do by queuing callbacks and using a pending_request flag. Makes it so that
all waiting callbacks receive the same result when the request completes.
2025-06-08 14:22:08 +03:00
a2f1264909
Merge pull request #8 from ergotu/fix-missing-envrc
...
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
fix: check if status.state.foundRC equals vim.NIL
2025-04-23 15:02:48 +00:00
Jordi Lambrechts
57a8fcdf29
fix: check if status.state.foundRC equals vim.NIL
...
When opening nvim in a directory that does not contain a .envrc file,
this would throw an error on startup.
This is because `vim.json.decode` translates the json null to `vim.NIL`,
which does not match Lua's `nil`
2025-04-23 05:39:35 +02:00
8e8c2a1d6e
Merge pull request #7 from NotAShelf/massive-refactor
...
Style & Lint / lint (5.1) (push) Has been cancelled
Style & Lint / style (0.19.1) (push) Has been cancelled
direnv.nvim: complete plugin overhaul
2025-03-21 14:08:32 +00:00
1215bc8871
docs: update API reference, features and TODO
2025-03-19 15:06:01 +03:00
4183b8e162
ignore testing config
2025-03-19 15:01:39 +03:00
66ebab06d0
direnv.nvim: complete plugin overhaul
...
I should have worked more with atomic commits and less with whatever the
hell this is supposed to be, but hindsight is 20/20. tl;dr is that this
refactor improves the plugin with better UX, slightly better
performance, and better compatibility with Neovim 0.10, which I have
overlooked last time. Changes are, from memory, as follows:
- Caching system to prevent excessive direnv status checks
- Statusline integration to show direnv status in real-time
- Proper async handling for all operations
- Added (subpar) .envrc file editor with creation prompt
- Added autocmd hooks for other plugins (User `DirenvLoaded`, fixes #5 )
- Better, comprehensive notification system with proper scheduling
- Intuitive handling of allowed/pending/blocked states
- Added command to check direnv status
- Improved contextual commands and keyboard mappings (despite "best"
practices)
For those who have direnv.nvim already set up (despite the repo being
archived for months), I tried to retain full backwards compat. New
functionality and error fixes were built on top.
2025-03-19 13:37:37 +03:00
3e38d855c7
Merge pull request #4 from diniamo/main
...
fix setup_keymaps, fix keymap descriptions
2024-07-08 14:39:12 +00:00
diniamo
8b702a5d35
fix keymap descriptions
2024-07-08 15:56:37 +02:00
diniamo
d4fa88bd63
fix setup_keymaps
2024-07-08 15:40:37 +02:00
abdbf48f56
Merge pull request #3 from diniamo/main
...
Revert "ensure all keymap commands are valid Lua strings"
2024-07-08 13:18:12 +00:00
diniamo
32985198c5
Revert "ensure all keymap commands are valid Lua strings"
...
This reverts commit 90f356d4b5 .
2024-07-08 15:08:11 +02:00
f50828ef06
Merge pull request #1 from itslychee/plugin_improvements
...
Various improvements to the plugin
2024-07-04 14:20:24 +00:00
itslychee
20ecd1d869
user_cmd: use one command instead of multiple
...
* DirenvCheck -> Direnv reload
* DirenvAllow -> Direnv allow
* DirenvDeny -> Direnv deny
Also renames M.check_direnv to M.reload_direnv for better naming.
2024-07-04 07:13:08 -05:00
9500c479f9
Merge pull request #2 from mrshmllow/main
...
`confirm` & `execute` `direnv export`
2024-07-04 07:03:03 +00:00
marshmallow
3269463590
confirm & execute export
2024-07-04 15:08:29 +10:00
c81f9e52c0
ci: check style & lint Lua code
2024-07-03 21:03:40 +03:00
90f356d4b5
ensure all keymap commands are valid Lua strings
2024-07-03 19:44:04 +03:00
8567799d76
add user commands for calling Direnv manually
2024-07-03 18:56:56 +03:00
91558d1edc
look for .envrc before calling direnv
2024-07-03 18:11:46 +03:00
27abc8e721
initial commit
2024-07-03 17:50:43 +03:00
raf
8d4d32a526
Initial commit
2024-07-03 14:49:58 +00:00