aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix94
1 files changed, 54 insertions, 40 deletions
diff --git a/flake.nix b/flake.nix
index 18561ab..182fe58 100644
--- a/flake.nix
+++ b/flake.nix
@@ -27,6 +27,7 @@
ColorColumn.bg="#0a0a0a";
Normal.bg=null; # Transparent nvim background
IlluminatedWordRead.fg="#E06C75"; # Illuminate
+ BufferTabpageFill.bg=null;
};
@@ -64,7 +65,7 @@
setup =
''
require('smear_cursor').setup {
- smear_to_cmd = false;
+ -- smear_to_cmd = false;
}
'';
};
@@ -75,14 +76,17 @@
vim.g.better_whitespace_filetypes_blacklist = { 'dashboard' } -- Don't show whitespace error on dashboard
'';
};
+ barbar-nvim = { # Intuative tabs for open file buffers
+ package = pkgs.vimPlugins.barbar-nvim;
+ };
#semshi = {
# package = pkgs.vimPlugins.semshi;
# setup = ":UpdateRemotePlugins";
#};
};
- withPython3 = true; # Needed for semshi python improved python highlighting
- python3Packages = [ "pynvim" ]; # Needed for semshi python improved python highlighting
+ # withPython3 = true; # Needed for semshi python improved python highlighting
+ # python3Packages = [ "pynvim" ]; # Needed for semshi python improved python highlighting
filetree.neo-tree = { # File tree for the side
enable = true;
@@ -128,7 +132,7 @@
cheatsheet.enable = true; # A searchable cheatsheet, using Telescope
};
- projects.project-nvim.enable = true; # Search projects and cd to them automatically. Trigger: Space+fp
+ # projects.project-nvim.enable = true; # Search projects and cd to them automatically. Trigger: Space+fp
autocomplete.blink-cmp = { # Code completion pop up
enable = true;
@@ -152,7 +156,7 @@
enable = true;
setupOpts = {
cmdline = {
- view = "cmdline"; # Get a classic cmdline at the bottom
+ # view = "cmdline"; # Get a classic cmdline at the bottom
};
};
};
@@ -160,39 +164,42 @@
illuminate.enable = true; # highlights all instances of word under cursor
};
- tabline.nvimBufferline = { # File tabs status bar for open file buffers
- enable = true;
- setupOpts = {
- options = {
- middle_mouse_command = "bd";
- numbers = "none";
- always_show_bufferline = false; # Don't show when only one buffer is open
- };
- highlights = {
- tab = {
- fg = "#aaaaaa";
- bg = null;
- };
- tab_selected = {
- fg = "#00ffff";
- bg = null;
- };
- };
- };
- };
+ # tabline.nvimBufferline = { # File tabs status bar for open file buffers
+ # enable = true;
+ # setupOpts = {
+ # options = {
+ # middle_mouse_command = "bd";
+ # numbers = "none";
+ # always_show_bufferline = false; # Don't show when only one buffer is open
+ # };
+ # highlights = {
+ # tab = {
+ # fg = "#aaaaaa";
+ # bg = null;
+ # };
+ # tab_selected = {
+ # fg = "#00ffff";
+ # bg = null;
+ # };
+ # };
+ # };
+ # };
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 = {
@@ -205,8 +212,7 @@
git = {
gitsigns = { # Show changes since last git commit + more shortcuts.
- enable = true;
- mappings.previewHunk = "<leader>g"; # Pop up, showing changes since last commit
+ enable = true; # Needed for barbar aswell
};
};
@@ -272,6 +278,7 @@
cursorline = true; # Highlight current line background & line number
list = true;
listchars = "tab:⇥·,trail:␠,nbsp:⎵"; # eol:⏎,,space:␣"; # Show hidden chars with list
+ expandtab = false; # Use tabs, not spaces for indentation
};
# ┌─────┐
@@ -363,11 +370,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
+ ];
};
}