54 lines
1.2 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-08-20 22:09:00 +00:00
opt.autowrite = false
opt.clipboard = "unnamedplus"
2024-06-17 14:19:21 +00:00
opt.cmdheight = 0
2024-01-22 14:04:33 +00:00
opt.completeopt = "menu,menuone,noinsert"
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.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" }
2024-01-22 14:04:33 +00:00
opt.shortmess:append "scCFI"
2023-08-20 22:09:00 +00:00
opt.showmode = false
opt.spell = false
opt.splitbelow = true
opt.splitright = true
opt.termguicolors = true
opt.updatetime = 250
2024-01-22 14:04:33 +00:00
opt.virtualedit = "onemore"
2023-08-20 22:09:00 +00:00
opt.wildmode = "longest:full,full"
opt.wrap = false
2023-08-21 17:19:37 +00:00
2024-03-02 16:06:30 +00:00
-- Indentation
opt.autoindent = true
opt.expandtab = false
opt.shiftwidth = 4
opt.smartindent = true
opt.softtabstop = 4
opt.tabstop = 4
2023-08-21 17:19:37 +00:00
-- UI
opt.fillchars = { eob = " ", vert = " " }
2023-08-22 14:51:35 +00:00
opt.laststatus = 0
2024-02-29 23:46:43 +00:00
opt.number = true
2023-08-21 17:19:37 +00:00
opt.relativenumber = false
2024-03-02 16:06:30 +00:00
opt.showtabline = 0
2024-02-01 19:59:19 +00:00
opt.signcolumn = "yes"
2023-08-22 14:51:35 +00:00
opt.statusline = "%{repeat('─',winwidth('.'))}"
2024-01-22 14:04:33 +00:00
2024-03-02 16:06:30 +00:00
-- Undo
opt.undofile = true
2024-06-17 14:19:21 +00:00
opt.undolevels = 10000