]>
git.madduck.net Git - etc/neovim.git/blobdiff - .config/nvim/options.lua
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
-----------------------------------------------------------------------------
-- "dark" or "light"; the background color brightness
-----------------------------------------------------------------------------
-- "dark" or "light"; the background color brightness
-vim.opt.background = 'light'
+vim.opt.background = "light"
-----------------------------------------------------------------------------
--- messages and info
-----------------------------------------------------------------------------
-- list of flags to make messages shorter
-----------------------------------------------------------------------------
--- messages and info
-----------------------------------------------------------------------------
-- list of flags to make messages shorter
-vim.opt.shortmess = 'atTWoOI'
+vim.opt.shortmess = "atTWoOI"
+
+-- display the current mode in the status line
+vim.opt.showmode = false -- the cursor already reflects the mode
+
+-- do not display a status line unless there is more than one window
+vim.opt.laststatus = 1
-----------------------------------------------------------------------------
--- displaying text
-----------------------------------------------------------------------------
--- displaying text
vim.opt.textwidth = 78
-- list of flags that tell how automatic formatting works
vim.opt.textwidth = 78
-- list of flags that tell how automatic formatting works
-vim.opt.formatoptions = 'tcroqn1l'
+vim.opt.formatoptions = "tcroqn1l"
-- pattern to recognize a numbered list
-- [[…]] is the Lua way to disable escape sequences in strings
vim.opt.formatlistpat = [[^\v\s*(((#|\a|\d{,4}|[ivx]{,4})[]:.)}/])+|[-\*.·→+])\s+]]
-- whether to use a popup menu for Insert mode completion
-- pattern to recognize a numbered list
-- [[…]] is the Lua way to disable escape sequences in strings
vim.opt.formatlistpat = [[^\v\s*(((#|\a|\d{,4}|[ivx]{,4})[]:.)}/])+|[-\*.·→+])\s+]]
-- whether to use a popup menu for Insert mode completion
-vim.opt.completeopt = { 'menu', 'noinsert', 'popup', 'preview' }
+vim.opt.completeopt = { "menu", "noinsert", "popup", "preview" }
-- number of spaces used for each step of (auto)indent
vim.opt.shiftwidth = 2
-- number of spaces used for each step of (auto)indent
vim.opt.shiftwidth = 2
-----------------------------------------------------------------------------
-- folding type: "manual", "indent", "expr", "marker", "syntax" or "diff"
-----------------------------------------------------------------------------
-- folding type: "manual", "indent", "expr", "marker", "syntax" or "diff"
-vim.opt.foldmethod = 'marker'
+vim.opt.foldmethod = "marker"
-----------------------------------------------------------------------------
--- reading and writing files
-----------------------------------------------------------------------------
--- reading and writing files
-----------------------------------------------------------------------------
-- list of directories for the swap file
-----------------------------------------------------------------------------
-- list of directories for the swap file
-vim.opt.directory = { '.', vim.g.statedir .. '/swap//', '/var/tmp//', '$TMPDIR//', '/tmp//' }
+vim.opt.directory = { ".", vim.g.statedir .. "/swap//", "/var/tmp//", "$TMPDIR//", "/tmp//" }
-----------------------------------------------------------------------------
--- command line editing
-----------------------------------------------------------------------------
-- list of patterns to ignore files for file name completion
-----------------------------------------------------------------------------
--- command line editing
-----------------------------------------------------------------------------
-- list of patterns to ignore files for file name completion
-vim.opt.wildignore = { '*.o', '*.pyc', '*.pyo', '*~', '*.bk', '*.bak' }
+vim.opt.wildignore = { "*.o", "*.pyc", "*.pyo", "*~", "*.bk", "*.bak" }
-----------------------------------------------------------------------------
--- various
-----------------------------------------------------------------------------
--- various
vim.opt.secure = true
-- list that specifies what to write in the ShaDa file
vim.opt.secure = true
-- list that specifies what to write in the ShaDa file
-vim.opt.shada = {'!', '%', '\'100', '/100', ':100', '<100', '@100', 'f1', 'h', 's10' }
+vim.opt.shada = { "!", "%", "'100", "/100", ":100", "<100", "@100", "f1", "h", "s10" }
-- location of shada file
vim.opt.shadafile = vim.g.statedir .. "shada/main.shada"
-- disable the mouse entirely
-- location of shada file
vim.opt.shadafile = vim.g.statedir .. "shada/main.shada"
-- disable the mouse entirely