From 24f75195cab9350495422d8771aa0c30b90a235f Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 10 Dec 2025 22:25:00 +0530 Subject: Configured nixvim --- modules/tools/default.nix | 2 +- modules/tools/nixvim/default.nix | 138 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 138 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/tools/default.nix b/modules/tools/default.nix index 8a207b0..0217362 100644 --- a/modules/tools/default.nix +++ b/modules/tools/default.nix @@ -17,7 +17,7 @@ ./lsd ./neofetch ./nixvim - ./neovim + # ./neovim ./nnn ./nvtop ./pamixer diff --git a/modules/tools/nixvim/default.nix b/modules/tools/nixvim/default.nix index 1bde14e..bff6220 100644 --- a/modules/tools/nixvim/default.nix +++ b/modules/tools/nixvim/default.nix @@ -17,6 +17,17 @@ in { { programs.nixvim = { enable = true; + keymaps = [ + { key = ""; action = "h"; } + { key = ""; action = "j"; } + { key = ""; action = "k"; } + { key = ""; action = "l"; } + { + key = ""; + action = "NvimTreeToggle"; + mode = [ "n" "i" ]; + } + ]; colorschemes.base16 = { enable = true; colorscheme = with config.scheme.withHashtag; { @@ -42,11 +53,136 @@ in { number = true; relativenumber = true; shiftwidth = 3; + tabstop = 3; + softtabstop = 3; + expandtab = false; + list = true; + laststatus = 3; }; + clipboard.providers.xclip.enable = true; + extraConfigLuaPre = with config.scheme.withHashtag; '' + vim.opt.fillchars:append({ eob = " " }) + vim.opt.listchars = { tab = "| ", trail = "_", lead = "_" } + vim.api.nvim_set_hl(0, "WinSeparator", { + fg = "${base01}", + bg = "${base00}", + }) + ''; plugins = { - lightline = { + comment = { enable = true; }; + lualine = { + enable = true; + settings = { + options = { + theme = with config.scheme.withHashtag; { + normal = { + a = { fg = base00; bg = base0D; gui = "bold"; }; + b = { fg = base05; bg = base01; }; + c = { fg = base05; bg = base00; }; + }; + insert = { + a = { fg = base00; bg = base0B; gui = "bold"; }; + b = { fg = base05; bg = base01; }; + c = { fg = base05; bg = base00; }; + }; + visual = { + a = { fg = base00; bg = base0A; gui = "bold"; }; + b = { fg = base05; bg = base01; }; + c = { fg = base05; bg = base00; }; + }; + replace = { + a = { fg = base00; bg = base08; gui = "bold"; }; + b = { fg = base05; bg = base01; }; + c = { fg = base05; bg = base00; }; + }; + inactive = { + a = { fg = base04; bg = base00; gui = "bold"; }; + b = { fg = base04; bg = base00; }; + c = { fg = base04; bg = base00; }; + }; + }; + icons_enabled = true; + }; + }; + }; + noice = { + enable = true; + cmdline = { + enabled = true; + view = "cmdline_popup"; + }; + popupmenu = { + enabled = true; + backend = "cmp"; + }; + presets = { + command_palette = true; + }; + }; + nvim-tree = { + enable = true; + settings = { + filters = { + dotfiles = false; + git_clean = false; + no_buffer = false; + custom = {}; + }; + git = { + enable = true; + ignore = false; + }; + view = { + width = { + padding = 0; + }; + }; + renderer = { + indent_markers = { + enable = true; + inline_arrows = false; + icons = { + corner = "└"; + edge = "│"; + item = "├"; + bottom = "─"; + none = " "; + }; + }; + icons = { + show = { + folder = true; + folder_arrow = false; + file = true; + git = true; + }; + }; + }; + }; + }; + treesitter = { + enable = true; + settings = { + highlight = { enable = true; }; + indent = { enable = true; }; + }; + }; + web-devicons = { + enable = true; + }; + which-key = { + enable = true; + settings = { + plugins = { + marks = true; + registers = true; + spelling = { enabled = true; suggestions = 20; }; + }; + window = { border = "single"; }; + }; + }; }; }; }; -- cgit v1.2.3