{ inputs, ... }: { imports = [ inputs.nixvim.homeModules.nixvim ]; programs.nixvim = { enable = true; defaultEditor = true; #colorschemes.catppuccin.enable = true; #colorschemes.tokyonight = { # enable = true; # settings = { # style = "night"; # }; #}; colorschemes.monokai-pro = { enable = true; settings = { filter = "classic"; # Options: classic, octagon, pro, machine }; }; #colorschemes.nightfox = { # enable = true; # flavor = "carbonfox"; # Try "nordfox" or "duskfox" too! #}; plugins.lualine.enable = true; vimAlias = true; opts = { number = true; relativenumber = true; }; # --- Sets tab spacing for file types --- autoCmd = [ { event = [ "FileType" ]; pattern = [ "html" "css" "javascript" "typescript" "nix" "lua" ]; callback = { __raw = '' function() vim.opt_local.expandtab = true vim.opt_local.shiftwidth = 2 vim.opt_local.softtabstop = 2 end ''; }; } { event = [ "FileType" ]; pattern = [ "cpp" "c" ]; callback = { __raw = '' function() vim.opt_local.expandtab = false vim.opt_local.shiftwidth = 4 vim.opt_local.tabstop = 4 end ''; }; } { event = [ "FileType" ]; pattern = [ "rust" ]; callback = { __raw = '' function() vim.opt_local.expandtab = true vim.opt_local.shiftwidth = 4 vim.opt_local.softtabstop = 4 vim.opt_local.tabstop = 4 end ''; }; } ]; plugins.cmp = { enable = true; autoEnableSources = true; settings.sources = [ { name = "nvim_lsp"; } { name = "path"; } { name = "buffer"; } ]; }; plugins.lsp = { enable = true; servers = { #nil_ls.enable = true; nil_ls = { enable = true; settings = { nix.flake.autoArchive = true; }; }; clangd.enable = true; html.enable = true; pyright.enable = true; }; }; plugins.rustaceanvim.enable = true; }; }