diff options
| author | user@node5.net <user@node5.net> | 2026-06-20 19:43:30 +0200 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2026-06-20 19:43:30 +0200 |
| commit | 03db97c14ea2e75657b38fd736132f5ee3fe68a6 (patch) | |
| tree | 48dc4f3f7a568f2236dc3c19f64b129e9c09dd71 /lua | |
| parent | da2ecda464e558f85343cecaaf4e88b97f49dd03 (diff) | |
indent use new faster lib, auto toggle based on mode
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/blink-indent.lua | 17 | ||||
| -rw-r--r-- | lua/neo-tree.lua | 22 |
2 files changed, 39 insertions, 0 deletions
diff --git a/lua/blink-indent.lua b/lua/blink-indent.lua new file mode 100644 index 0000000..56a58e6 --- /dev/null +++ b/lua/blink-indent.lua @@ -0,0 +1,17 @@ +local indent = require('blink.indent') + +local group = vim.api.nvim_create_augroup('IndentGuidesByMode', { clear = true }) + +vim.api.nvim_create_autocmd('InsertEnter', { + group = group, + callback = function() + indent.enable(true) + end, +}) + +vim.api.nvim_create_autocmd('InsertLeave', { + group = group, + callback = function() + indent.enable(false) + end, +}) diff --git a/lua/neo-tree.lua b/lua/neo-tree.lua new file mode 100644 index 0000000..0750d6c --- /dev/null +++ b/lua/neo-tree.lua @@ -0,0 +1,22 @@ +require("neo-tree").setup({ + window = { + mappings = { + ["<F5>"] = "refresh", + ["o"] = "open", + } + }, + filesystem = { + window = { + mappings = { + ["O"] = { + command = function(state) + local node = state.tree:get_node() + local cmd = "thunar '" .. node.path .. "'" .. " > /dev/null 2>&1" + print("Opening: " .. node.path) -- Debug statement + os.execute(cmd) + end, + }, + }, + }, + }, +}) |
