dotfiles/home/modules/tui/neovim/options.nix

50 lines
2.3 KiB
Nix
Raw Normal View History

2024-12-05 03:11:13 +00:00
{
programs.nixvim = {
clipboard = {
2024-12-20 01:30:06 +00:00
providers = { xsel.enable = true; };
2024-12-09 22:50:33 +00:00
register = "unnamed";
2024-12-05 03:11:13 +00:00
};
opts = {
2024-12-10 14:54:56 +00:00
autoindent = true; # do clever autoindenting
colorcolumn = "100"; # columns to highlight
cursorcolumn = false; # highlight the screen column of the cursor
cursorline = true; # highlight the screen line of the cursor
expandtab = true; # expand <Tab> to spaces in Insert mode
fileencoding = "utf-8"; # file-content encoding for the current buffer
2024-12-20 01:30:06 +00:00
foldlevel =
99; # folds with a level higher than this number will be closed
2024-12-05 03:11:13 +00:00
hidden = true; # Keep closed buffer open in the background
2024-12-20 01:30:06 +00:00
ignorecase =
true; # when search query is lowercase match both lower and upper patterns
inccommand =
"split"; # search and replace: preview changes in quickfix list
incsearch =
true; # incremental search: show match for partly typed search command
2024-12-10 14:54:56 +00:00
laststatus = 3; # when to use a status line for the last window
2024-12-05 03:11:13 +00:00
modeline = true; # tags such as 'vim:ft=sh'
modelines = 5; # check first and last five lines for modelines
2024-12-10 14:54:56 +00:00
mouse = "a"; # Enable mouse control
mousemodel = "extend"; # Mouse right-click extends the current selection
number = true; # Display absolute line number of current line
relativenumber = true; # Relative line numbers
2024-12-05 03:11:13 +00:00
scrolloff = 8; # number of lines to show around the cursor
2024-12-10 14:54:56 +00:00
shiftwidth = 2; # number of spaces used for each step of (auto)indent
2024-12-05 03:11:13 +00:00
signcolumn = "yes"; # whether to show the signcolumn
2024-12-20 01:30:06 +00:00
smartcase =
true; # override ignorecase if search pattern containers upper case
2024-12-05 03:11:13 +00:00
spell = false; # highlight spelling mistakes
2024-12-10 14:54:56 +00:00
splitbelow = true; # A new window is put below the current one
splitright = true; # A new window is put right of the corrent one
swapfile = false; # Disable the swap file
2024-12-05 03:11:13 +00:00
tabstop = 2; # number of spaces a <Tab> in the text stands for
2024-12-10 14:54:56 +00:00
termguicolors = true; # enables 24-bit colors
2024-12-20 01:30:06 +00:00
textwidth =
0; # maximum width of text that is being inserted, a longer line will be broken after whitespace to this width
2024-12-10 14:54:56 +00:00
undofile = true; # save and restore undo history
updatetime = 100; # Faster completion
wrap = false; # prevent wrapping text
2024-12-05 03:11:13 +00:00
};
};
2024-12-09 22:50:33 +00:00
}