58 lines
1.3 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"
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.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
2024-01-22 14:04:33 +00:00
opt.shortmess:append "scCFI"
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
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
-- UI
opt.fillchars = { eob = " ", vert = " " }
2023-08-22 14:51:35 +00:00
opt.laststatus = 0
2024-02-01 19:59:19 +00:00
opt.number = false
2023-08-21 17:19:37 +00:00
opt.relativenumber = false
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
-- Neovide
if g.neovide then
2024-02-01 19:59:19 +00:00
opt.linespace = 3
2024-01-22 14:04:33 +00:00
g.neovide_fullscreen = true
2024-02-01 19:59:19 +00:00
g.neovide_transparency = 0.92
vim.o.guifont = "UbuntuMono Nerd Font:h20:#h-none"
2024-01-22 14:04:33 +00:00
end