114 lines
3.6 KiB
Nix
114 lines
3.6 KiB
Nix
{ inputs, pkgs, config, lib, theme, ... }: {
|
|
imports = [
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
]; # ++ lib.optional (builtins.isString theme) ../../../../stylix/${theme}/home-manager/nixvim.nix;
|
|
|
|
programs.nixvim = {
|
|
colorscheme = lib.mkForce "everforest";
|
|
enable = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
|
|
globals.mapleader = " ";
|
|
globals.maplocalleader = " ";
|
|
|
|
options = {
|
|
number = true;
|
|
shiftwidth = 2;
|
|
# Indent wrapped text.
|
|
breakindent = true;
|
|
colorcolumn = "100";
|
|
showmode = false;
|
|
};
|
|
plugins = {
|
|
treesitter.enable = true;
|
|
lualine.enable = true;
|
|
luasnip.enable = false;
|
|
nix.enable = true;
|
|
nix-develop.enable = true;
|
|
bufferline.enable = true;
|
|
which-key.enable = true;
|
|
intellitab.enable = true;
|
|
illuminate.enable = false;
|
|
neo-tree.enable = true;
|
|
gitsigns.enable = true;
|
|
toggleterm.enable = true;
|
|
rainbow-delimiters.enable = true;
|
|
|
|
telescope = {
|
|
enable = true;
|
|
extensions.fzf-native.enable = true;
|
|
keymaps = {
|
|
"<leader><leader>" = {
|
|
action = "find_files";
|
|
desc = "Search files by name";
|
|
};
|
|
"<leader>s" = {
|
|
action = "live_grep";
|
|
desc = "Search by live grep";
|
|
};
|
|
"<leader>b" = {
|
|
action = "buffers";
|
|
desc = "Search open [B]uffers by file name";
|
|
};
|
|
"<leader>h" = {
|
|
action = "help_tags";
|
|
desc = "Search [H]elp";
|
|
};
|
|
"<leader>w" = {
|
|
action = "grep_string";
|
|
desc = "Search for [W]ord under cursor";
|
|
};
|
|
"<leader>g" = {
|
|
action = "buffers";
|
|
desc = "Search [G]it files";
|
|
};
|
|
"<leader>r" = {
|
|
action = "oldfiles";
|
|
desc = "Search [R]ecently opened files by name";
|
|
};
|
|
};
|
|
};
|
|
|
|
lsp = {
|
|
enable = true;
|
|
servers = {
|
|
rust-analyzer = {
|
|
enable = true;
|
|
installCargo = true;
|
|
installRustc = true;
|
|
};
|
|
nixd.enable = true;
|
|
pylsp.enable = true;
|
|
html.enable = true;
|
|
cssls.enable = true;
|
|
bashls.enable = true;
|
|
};
|
|
};
|
|
|
|
nvim-cmp = {
|
|
enable = true;
|
|
autoEnableSources = true;
|
|
sources = [
|
|
{ name = "nvim_lsp"; }
|
|
{ name = "path"; }
|
|
{ name = "buffer"; }
|
|
];
|
|
};
|
|
};
|
|
|
|
colorschemes = {
|
|
tokyonight.enable = true;
|
|
gruvbox.enable = true;
|
|
oxocarbon.enable = true;
|
|
nord.enable = true;
|
|
catppuccin.enable = true;
|
|
kanagawa.enable = true;
|
|
dracula.enable = true;
|
|
|
|
};
|
|
extraPlugins = with pkgs.vimPlugins; [
|
|
everforest
|
|
];
|
|
};
|
|
}
|