aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/blink-indent.lua17
-rw-r--r--lua/neo-tree.lua22
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,
+ },
+ },
+ },
+ },
+})