wrap=true,-- do wrap long lines by default at margin 80
writebackup=false,-- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
autoread=true,-- Automatically re-read file if a change was detected outside of vim
backspace={"indent","eol","start"},
backup=false,-- creates a backup file
clipboard="unnamedplus",-- allows neovim to access the system clipboard
cmdheight=1,-- more space in the neovim command line for displaying messages
completeopt={"menuone","noselect"},-- mostly just for cmp
cursorline=false,-- Don't highlight current cursor line
encoding='UTF-8',-- default to utf-8
expandtab=true,-- Insert spaces when TAB is pressed.
fileencoding='UTF-8',-- default to utf-8
hidden=true,-- Hides buffers instead of closing them
hlsearch=true,-- highlight all matches on previous search pattern
ignorecase=true,-- ignore case in search patterns
inccommand="nosplit",-- Incremental live completion
incsearch=true,
linebreak=true,
mouse="a",-- Enable mouse support
mousemodel="popup_setpos",
number=true,-- Show numbers in files
relativenumber=false,-- Disable relative line numbers
ruler=true,-- Disable line/column number in status line
scrolloff=8,-- Scrolls the screen with the cursor
shiftwidth=4,-- Indentation amount for < and > commands.
showcmd=false,-- don't show last command
showmatch=true,
showmode=false,-- Don't dispay mode in command line
signcolumn="yes",-- Always show the signcolumn, otherwise it would shift the text each time
smartindent=true,-- make indenting smarter again
softtabstop=4,
splitbelow=true,-- force all horizontal splits to go below current window
splitright=true,-- force all vertical splits to go to the right of current window
swapfile=false,-- creates a swapfile
tabstop=4,-- Change number of spaces that a <Tab> counts for during editing ops
termguicolors=true,-- set term gui colors (most terminals support this)
timeoutlen=300,-- time to wait for a mapped sequence to complete (in milliseconds)
wrap=false,-- do not wrap long lines by default at margin 80
writebackup=false,-- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
}
fork,vinpairs(options)do
vim.opt[k]=v
end
-- showing special non-printable chars
vim.opt.listchars:append{tab=">>>"}
vim.opt.listchars:append{trail="·"}
vim.opt.listchars:append{space="⋅"}
vim.opt.listchars:append{precedes="←"}
vim.opt.listchars:append{extends="→"}
vim.opt.listchars:append{eol="↲"}
vim.opt.listchars:append{nbsp="␣"}
vim.opt.fillchars:append{eob=""}-- hide tildes at the end of buffers
vim.opt.fillchars:append{vert=""}-- hide borders of split vertical windows (nvim tree)