feat(home:git): add gh tool
This commit is contained in:
parent
33e7a6f7f9
commit
e743691d94
12 changed files with 225 additions and 47 deletions
|
|
@ -9,32 +9,92 @@ in
|
|||
{
|
||||
config = mkIf (cfg.enable || console.editor == "nvim") {
|
||||
programs.nixvim = {
|
||||
options = {
|
||||
opts = {
|
||||
|
||||
# line numbers
|
||||
relativenumber = true;
|
||||
number = true;
|
||||
|
||||
# command line height
|
||||
cmdheight = 2;
|
||||
|
||||
# popup menu height (0 == use all available space)
|
||||
pumheight = 0;
|
||||
|
||||
hidden = true;
|
||||
|
||||
# mouse mode
|
||||
mouse = "a";
|
||||
mousemodel = "extend";
|
||||
|
||||
# undo history
|
||||
undofile = true;
|
||||
swapfile = false;
|
||||
incsearch = true;
|
||||
ignorecase = true;
|
||||
smartcase = true;
|
||||
fileencoding = "utf-8";
|
||||
termguicolors = true;
|
||||
autoindent = true;
|
||||
shiftwidth = 2;
|
||||
smartindent = true;
|
||||
backup = false;
|
||||
|
||||
# tab size
|
||||
tabstop = 2;
|
||||
expandtab = true;
|
||||
updatetime = 100;
|
||||
showtabline = 2;
|
||||
softtabstop = 2;
|
||||
|
||||
# auto indenting
|
||||
smartindent = true;
|
||||
shiftwidth = 2;
|
||||
|
||||
# text wrapping
|
||||
wrap = true;
|
||||
|
||||
# fold settings
|
||||
foldcolumn = "0";
|
||||
foldlevel = 99;
|
||||
foldlevelstart = 99;
|
||||
foldenable = true;
|
||||
|
||||
# which-key timeout
|
||||
timeoutlen = 10;
|
||||
|
||||
# faster updatetime
|
||||
updatetime = 50;
|
||||
|
||||
# cursor position unless at start/end
|
||||
scrolloff = 8;
|
||||
|
||||
# 24 bit colors
|
||||
termguicolors = true;
|
||||
|
||||
# highlight cursor line
|
||||
cursorline = true;
|
||||
|
||||
# encoding
|
||||
encoding = "utf-8";
|
||||
fileencoding = "utf-8";
|
||||
|
||||
# chars list
|
||||
# list = true;
|
||||
# listchars = "eol:↲,tab:|->,lead:·,space: ,trail:•,extends:→,precedes:←,nbsp:␣";
|
||||
|
||||
# splitting
|
||||
splitbelow = true;
|
||||
splitright = true;
|
||||
|
||||
# better searching
|
||||
ignorecase = true;
|
||||
grepprg = "rg --vimgrep";
|
||||
grepformat = "%f:%l:%c:%m";
|
||||
smartcase = true;
|
||||
|
||||
# prevent screen jumping
|
||||
signcolumn = "yes";
|
||||
|
||||
incsearch = true;
|
||||
autoindent = true;
|
||||
};
|
||||
|
||||
clipboard = {
|
||||
register = "unnamedplus";
|
||||
providers.wl-copy.enable = true;
|
||||
};
|
||||
|
||||
colorscheme = "${config.colorscheme.slug}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue