48 lines
1.1 KiB
Lua
Raw Normal View History

2023-08-21 17:19:37 +00:00
-- Globals
2023-08-19 17:22:56 +00:00
local g = vim.g
g.mapleader = " "
2023-07-29 18:15:47 +00:00
2023-08-21 17:19:37 +00:00
for _, provider in ipairs { "node", "perl", "python3", "ruby" } do
g["loaded_" .. provider .. "_provider"] = 0
end
-- Options
2023-08-19 17:22:56 +00:00
local opt = vim.opt
2023-07-29 18:15:47 +00:00
opt.autoindent = true
2023-08-20 22:09:00 +00:00
opt.autowrite = false
opt.clipboard = "unnamedplus"
2023-07-29 18:15:47 +00:00
opt.conceallevel = 0
2023-08-19 17:22:56 +00:00
opt.cursorline = true
2023-10-20 13:55:21 +00:00
opt.cursorlineopt = "number"
2023-08-20 22:09:00 +00:00
opt.expandtab = false
opt.grepformat = "%f:%l:%c:%m"
2023-08-22 14:51:35 +00:00
opt.grepprg = "rg --grep"
2023-08-20 22:09:00 +00:00
opt.ignorecase = false
opt.mouse = "a"
2023-08-19 17:22:56 +00:00
opt.ruler = false
2023-08-20 22:09:00 +00:00
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftwidth = 4
2023-08-22 14:51:35 +00:00
opt.shortmess:append "sCFI"
2023-08-20 22:09:00 +00:00
opt.showmode = false
2023-08-22 14:51:35 +00:00
opt.showtabline = 0
2023-08-20 22:09:00 +00:00
opt.smartindent = true
opt.softtabstop = 4
opt.spell = false
opt.splitbelow = true
opt.splitright = true
opt.tabstop = 4
opt.termguicolors = true
opt.undofile = true
opt.undolevels = 10000
opt.updatetime = 250
opt.wildmode = "longest:full,full"
opt.wrap = false
2023-08-21 17:19:37 +00:00
-- UI
opt.fillchars = { eob = " ", vert = " " }
2023-08-22 14:51:35 +00:00
opt.laststatus = 0
2023-08-21 17:19:37 +00:00
opt.number = true
opt.relativenumber = false
2023-08-29 11:29:37 +00:00
opt.signcolumn = "number"
2023-08-22 14:51:35 +00:00
opt.statusline = "%{repeat('─',winwidth('.'))}"