54 lines
1.1 KiB
Lua
Raw Normal View History

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