68 lines
1.5 KiB
Lua
68 lines
1.5 KiB
Lua
local global = vim.g
|
|
local opt = vim.opt
|
|
|
|
vim.g.clipboard = {
|
|
name = "wl-clipboard",
|
|
copy = { ["+"] = "wl-copy", ["*"] = "wl-copy" },
|
|
paste = { ["+"] = "wl-paste", ["*"] = "wl-paste" },
|
|
}
|
|
|
|
global.mapleader = ";"
|
|
global.maplocalleader = "\\"
|
|
global.lazyvim_picker = "telescope"
|
|
|
|
opt.number = true
|
|
opt.showmatch = true
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
opt.hlsearch = true
|
|
opt.incsearch = true
|
|
opt.tabstop = 2
|
|
opt.softtabstop = 4
|
|
opt.shiftwidth = 2
|
|
opt.colorcolumn = "80"
|
|
opt.textwidth = 80
|
|
opt.clipboard = "unnamedplus"
|
|
opt.cursorline = true
|
|
opt.background = "dark"
|
|
opt.mouse = ""
|
|
opt.ttyfast = true
|
|
opt.laststatus = 2
|
|
opt.signcolumn = "yes"
|
|
opt.swapfile = false
|
|
opt.showmode = false
|
|
opt.termguicolors = true
|
|
opt.wrap = false
|
|
opt.formatoptions = "cro"
|
|
opt.backspace = "indent,eol,start"
|
|
opt.conceallevel = 0
|
|
opt.spelllang = "en_gb"
|
|
opt.relativenumber = false
|
|
vim.opt.spell = false
|
|
|
|
-- 0.12: native insert-mode completion (replaces nvim-cmp)
|
|
vim.o.autocomplete = true
|
|
vim.o.completeopt = "menu,menuone,noselect,nearest"
|
|
vim.o.pumborder = "rounded"
|
|
vim.o.pummaxwidth = 40
|
|
|
|
-- 0.12: diagnostic signs must be configured here; sign_define() is removed
|
|
local sev = vim.diagnostic.severity
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = false,
|
|
severity_sort = true,
|
|
update_in_insert = false,
|
|
float = {
|
|
border = "rounded",
|
|
source = true,
|
|
},
|
|
signs = {
|
|
text = {
|
|
[sev.ERROR] = "E",
|
|
[sev.WARN] = "W",
|
|
[sev.INFO] = "I",
|
|
[sev.HINT] = "H",
|
|
},
|
|
},
|
|
})
|