diff options
| -rw-r--r-- | flake.nix | 37 | ||||
| -rw-r--r-- | lua/blink-indent.lua | 17 | ||||
| -rw-r--r-- | lua/neo-tree.lua (renamed from lua.lua) | 0 |
3 files changed, 40 insertions, 14 deletions
@@ -27,6 +27,7 @@ ColorColumn.bg="#0a0a0a"; Normal.bg=null; # Transparent nvim background IlluminatedWordRead.fg="#E06C75"; # Illuminate + BufferTabpageFill.bg=null; }; @@ -186,17 +187,19 @@ visuals = { rainbow-delimiters.enable = true; - indent-blankline = { - enable = true; # Lines that show code nesting indentation - setupOpts = { - # indent.tab_char = "⇥"; - exclude = { - filetypes = [ "dashboard" ]; # Don't show indent on dashboard - }; - }; - }; - nvim-scrollbar.enable = true; # File scrollbar on the right side + blink-indent.enable = true; + # indent-blankline = { + # enable = false; # Lines that show code nesting indentation + # setupOpts = { + # # indent.tab_char = "⇥"; + # exclude = { + # filetypes = [ "dashboard" ]; # Don't show indent on dashboard + # }; + # }; + # }; + nvim-scrollbar.enable = true; # File scrollbar on the right side nvim-web-devicons.enable = true; # Needed for barbar aswell + cinnamon-nvim.enable = true; # smooth scrolling for ANY command }; telescope = { @@ -210,7 +213,6 @@ git = { gitsigns = { # Show changes since last git commit + more shortcuts. enable = true; # Needed for barbar aswell - mappings.previewHunk = "<leader>g"; # Pop up, showing changes since last commit }; }; @@ -367,11 +369,18 @@ action = ":bprevious<CR>"; desc = "Switch to previous open file buffer"; } + { + key = "<C-q>"; + mode = ["n"]; + action = ":BufferClose<CR>"; + desc = "Close tab"; + } ]; - extraLuaFiles = [ - ./lua.lua - ]; + extraLuaFiles = [ + ./lua/neo-tree.lua + ./lua/blink-indent.lua + ]; }; } 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.lua b/lua/neo-tree.lua index 0750d6c..0750d6c 100644 --- a/lua.lua +++ b/lua/neo-tree.lua |
