83 lines
2.3 KiB
Nix
83 lines
2.3 KiB
Nix
{
|
|
config = {
|
|
globals = {
|
|
mapleader = " ";
|
|
maplocalleader = " ";
|
|
|
|
# set *.tex to tex filetype instead of plaintex
|
|
# :help tex_flavor
|
|
tex_flavor = "latex";
|
|
};
|
|
opts = {
|
|
relativenumber = true;
|
|
splitbelow = true;
|
|
redrawtime = 15000;
|
|
|
|
# new split to the right
|
|
splitright = true;
|
|
|
|
# show hidden characters
|
|
list = true;
|
|
|
|
# don't break words on the edge
|
|
linebreak = true;
|
|
wrap = true;
|
|
# length of an actual \t character:
|
|
# https://stackoverflow.com/questions/191201/indenting-comments-to-match-code-in-vim
|
|
smartindent = false;
|
|
# length to use when shifting text (eg. <<, >> and == commands)
|
|
|
|
tabstop = 2;
|
|
shiftwidth = 0;
|
|
|
|
# set it to true for indenting with space after prssing o/O in normal mode
|
|
expandtab = true;
|
|
autoindent = true;
|
|
# Set highlight on search
|
|
hlsearch = false;
|
|
|
|
# Make line numbers default
|
|
number = true;
|
|
|
|
# Enable mouse mode
|
|
mouse = "a";
|
|
|
|
# Sync clipboard between OS and Neovim.
|
|
# Remove this option if you want your OS clipboard to remain independent.
|
|
# See `:help 'clipboard'`
|
|
# vim.o.clipboard = 'unnamedplus' -- REMOVED BY ME
|
|
|
|
# Enable break indent
|
|
breakindent = true;
|
|
|
|
# Save undo history
|
|
# vim.o.undofile = true -- REMOVED BY ME
|
|
|
|
# Case insensitive searching UNLESS /C or capital in search
|
|
ignorecase = true;
|
|
smartcase = true;
|
|
|
|
# Keep signcolumn on by default
|
|
signcolumn = "yes";
|
|
|
|
# Decrease update time
|
|
updatetime = 250;
|
|
timeout = true;
|
|
# timeoutlen = 1000; # time of valid keypress like for leader key in millisecond
|
|
timeoutlen = 300; # lower to 300 in favor of which-key plugins
|
|
|
|
# Set completeopt to have a better completion experience
|
|
completeopt = "menuone,noselect";
|
|
|
|
# NOTE: You should make sure your terminal supports this
|
|
termguicolors = true;
|
|
|
|
# Configures the cursor style for each mode.
|
|
# from :help guicursor
|
|
guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175";
|
|
|
|
# Minimal number of screen lines to keep above and below the cursor.
|
|
scrolloff = 0;
|
|
};
|
|
};
|
|
}
|