neovim start
This commit is contained in:
128
home-modules/nixvim.nix
Normal file
128
home-modules/nixvim.nix
Normal file
@@ -0,0 +1,128 @@
|
||||
{ config, pkgs, inputs, system, rice, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
|
||||
home.packages = [
|
||||
pkgs.neovide
|
||||
];
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
|
||||
options = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
shiftwidth = 2;
|
||||
};
|
||||
colorschemes.catppuccin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mocha = {
|
||||
base = "#ff0000";
|
||||
};
|
||||
disable_underline = true;
|
||||
flavour = "mocha";
|
||||
integrations = {
|
||||
cmp = true;
|
||||
gitsigns = true;
|
||||
mini = {
|
||||
enabled = true;
|
||||
indentscope_color = "";
|
||||
};
|
||||
notify = false;
|
||||
nvimtree = true;
|
||||
treesitter = true;
|
||||
};
|
||||
styles = {
|
||||
booleans = [
|
||||
"bold"
|
||||
"italic"
|
||||
];
|
||||
conditionals = [
|
||||
"bold"
|
||||
];
|
||||
};
|
||||
term_colors = true;
|
||||
};
|
||||
};
|
||||
# colorschemes.base16 = {
|
||||
# enable = true;
|
||||
# setUpBar = true;
|
||||
# colorscheme = "onedark";
|
||||
|
||||
# customColorScheme = {
|
||||
# base00 = rice.color.background;
|
||||
# base01 = rice.color.bright-black;
|
||||
# base02 = rice.color.blue;
|
||||
# base03 = rice.color.bright-blue;
|
||||
# base04 = rice.color.cyan;
|
||||
# base05 = rice.color.bright-cyan;
|
||||
# base06 = rice.color.green;
|
||||
# base07 = rice.color.bright-green;
|
||||
# base08 = rice.color.magenta;
|
||||
# base09 = rice.color.bright-magenta;
|
||||
# base0A = rice.color.red;
|
||||
# base0B = rice.color.bright-red;
|
||||
# base0C = rice.color.white;
|
||||
# base0D = rice.color.bright-white;
|
||||
# base0E = rice.color.yellow;
|
||||
# base0F = rice.color.bright-yellow;
|
||||
# };
|
||||
# };
|
||||
opts = {
|
||||
termguicolors = true;
|
||||
};
|
||||
globals = {
|
||||
mapleader = " ";
|
||||
};
|
||||
plugins = {
|
||||
telescope = {
|
||||
enable = true;
|
||||
extensions = {
|
||||
fzf-native.enable = true;
|
||||
};
|
||||
keymaps = {
|
||||
"<C-o>" = { action = "find_files"; };
|
||||
"<leader>fg" = { action = "live_grep"; };
|
||||
};
|
||||
};
|
||||
|
||||
lightline = {
|
||||
enable = true;
|
||||
# colorscheme = "base16";
|
||||
# active = {
|
||||
# left = [
|
||||
# ["mode" "paste"]
|
||||
# ["readonly" "filename" "modified"]
|
||||
# ];
|
||||
|
||||
# right = [
|
||||
# [ "lineinfo" ]
|
||||
# [ "percent" ]
|
||||
# [ "fileformat" "fileencoding" "filetype" "charvaluehex" ]
|
||||
# [ "git" ]
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
nix.enable = true;
|
||||
|
||||
lsp-lines.enable = true;
|
||||
lspkind.enable = true;
|
||||
};
|
||||
extraPlugins = [ ];
|
||||
keymaps =
|
||||
let
|
||||
mkKeymap = mode: key: action: { inherit mode key action; };
|
||||
mkKeymapWithOpts = mode: key: action: opts: (mkKeymap mode key action) // { options = opts; };
|
||||
in
|
||||
[
|
||||
(mkKeymap "" "<Space>" "<Nop>")
|
||||
(mkKeymap "n" "<leader>ff" "builtin.find_files")
|
||||
];
|
||||
};
|
||||
}
|
||||
## vl clipboard?
|
||||
Reference in New Issue
Block a user