54 lines
1.2 KiB
Lua
54 lines
1.2 KiB
Lua
-- Globals
|
|
local g = vim.g
|
|
g.mapleader = " "
|
|
|
|
for _, provider in ipairs { "node", "perl", "python3", "ruby" } do
|
|
g["loaded_" .. provider .. "_provider"] = 0
|
|
end
|
|
|
|
-- Options
|
|
local opt = vim.opt
|
|
opt.autowrite = false
|
|
opt.clipboard = "unnamedplus"
|
|
opt.cmdheight = 0
|
|
opt.completeopt = "menu,menuone,noinsert"
|
|
opt.conceallevel = 0
|
|
opt.cursorline = true
|
|
opt.cursorlineopt = "number"
|
|
opt.grepformat = "%f:%l:%c:%m"
|
|
opt.grepprg = "rg --grep"
|
|
opt.ignorecase = false
|
|
opt.mouse = "a"
|
|
opt.ruler = false
|
|
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
|
|
opt.shortmess:append "scCFI"
|
|
opt.showmode = false
|
|
opt.spell = false
|
|
opt.splitbelow = true
|
|
opt.splitright = true
|
|
opt.termguicolors = true
|
|
opt.updatetime = 250
|
|
opt.virtualedit = "onemore"
|
|
opt.wildmode = "longest:full,full"
|
|
opt.wrap = false
|
|
|
|
-- Indentation
|
|
opt.autoindent = true
|
|
opt.expandtab = false
|
|
opt.shiftwidth = 4
|
|
opt.smartindent = true
|
|
opt.softtabstop = 4
|
|
opt.tabstop = 4
|
|
|
|
-- UI
|
|
opt.fillchars = { eob = " ", vert = " " }
|
|
opt.laststatus = 0
|
|
opt.number = true
|
|
opt.relativenumber = false
|
|
opt.showtabline = 0
|
|
opt.signcolumn = "yes"
|
|
opt.statusline = "%{repeat('─',winwidth('.'))}"
|
|
|
|
-- Undo
|
|
opt.undofile = true
|
|
opt.undolevels = 10000 |