57 lines
1.6 KiB
Lua
57 lines
1.6 KiB
Lua
local options = {
|
|
backup = false, -- creates a backup file
|
|
clipboard = "unnamedplus", -- gives nvim access to clipboard
|
|
cmdheight = 1, -- more space in nvim cmd line
|
|
completeopt = { "menuone", "noselect" }, -- cmp related
|
|
conceallevel = 0, -- don't hide ``` in markdown
|
|
fileencoding = "utf-8",
|
|
hlsearch = false,
|
|
ignorecase = true,
|
|
mouse = "a", -- allow use of mouse (bad I know but sometimes useful)
|
|
pumheight = 10, -- popup menu height
|
|
showmode = true,
|
|
smartcase = true,
|
|
smartindent = true,
|
|
splitbelow = true,
|
|
splitright = true,
|
|
swapfile = false,
|
|
termguicolors = true,
|
|
timeoutlen = 500,
|
|
ttimeoutlen = 10,
|
|
undofile = true,
|
|
updatetime = 100,
|
|
writebackup = false,
|
|
expandtab = true, -- use spaces instead of tab
|
|
shiftwidth = 4, -- insert 4 spaces for indentation
|
|
tabstop = 4, -- insert 4 spaces for tab
|
|
cursorline = false,
|
|
number = true,
|
|
laststatus = 3,
|
|
showcmd = false,
|
|
ruler = false,
|
|
relativenumber = true,
|
|
numberwidth = 2,
|
|
signcolumn = "yes:1",
|
|
wrap = false,
|
|
scrolloff = 8,
|
|
sidescrolloff = 8,
|
|
guifont = "monospace:h17",
|
|
title = true,
|
|
spelllang = "en_gb",
|
|
autowrite = true,
|
|
confirm = true,
|
|
formatoptions = "jcroqlnt", -- tcqj
|
|
grepformat = "%f:%l:%c:%m",
|
|
grepprg = "rg --vimgrep",
|
|
}
|
|
|
|
vim.opt.fillchars = vim.opt.fillchars + "eob: "
|
|
|
|
for k, v in pairs(options) do
|
|
vim.opt[k] = v
|
|
end
|
|
|
|
vim.cmd("set whichwrap+=<,>,[,],h,l")
|
|
vim.cmd("set colorcolumn=80")
|
|
vim.cmd([[set iskeyword+=-]])
|