39 lines
1.2 KiB
Lua
39 lines
1.2 KiB
Lua
local options = {
|
|
clipboard = "unnamedplus",
|
|
mouse = "n",
|
|
fileencoding = "utf-8",
|
|
relativenumber = true,
|
|
cursorline = false,
|
|
number = true,
|
|
smartindent = true,
|
|
smartcase = true,
|
|
showmode = true,
|
|
termguicolors = true,
|
|
ignorecase = true,
|
|
showtabline = 2,
|
|
timeoutlen = 200, -- time to wait for a mapped sequence to complete (in milliseconds)
|
|
undofile = true, -- enable persistent undoi updatetime = 300, -- faster completion (4000ms default)
|
|
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
|
|
expandtab = true, -- convert tabs to spaces
|
|
shiftwidth = 2, -- the number of spaces inserted for each indentation
|
|
tabstop = 2, -- insert 2 spaces for a tab
|
|
scrolloff = 8,
|
|
sidescrolloff = 8,
|
|
spell = true,
|
|
syntax = "off",
|
|
spelllang = "en_us",
|
|
mousemodel = "popup_setpos",
|
|
shell = "/usr/bin/zsh",
|
|
autochdir = true,
|
|
}
|
|
|
|
vim.g.mkdp_browser = '/usr/bin/firefox'
|
|
vim.g.mkdp_auto_start = 1
|
|
|
|
-- space leader
|
|
vim.g.mapleader = " "
|
|
vim.keymap.set("n", "<Space>", "<Nop>", { silent = true, noremap = false })
|
|
|
|
for k, v in pairs(options) do
|
|
vim.opt[k] = v
|
|
end
|