dotfiles/nvim/lua/config/options.lua

69 lines
1.5 KiB
Lua
Raw Normal View History

2024-10-27 16:21:40 +00:00
local global = vim.g
local opt = vim.opt
2024-10-27 16:21:40 +00:00
2026-03-23 19:21:12 +00:00
vim.g.clipboard = {
name = "wl-clipboard",
copy = { ["+"] = "wl-copy", ["*"] = "wl-copy" },
paste = { ["+"] = "wl-paste", ["*"] = "wl-paste" },
2026-03-23 19:21:12 +00:00
}
2024-10-27 16:21:40 +00:00
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
2024-02-02 16:08:25 +00:00
opt.colorcolumn = "80"
opt.textwidth = 80
2024-03-28 14:40:10 +00:00
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
2024-02-02 16:08:25 +00:00
opt.formatoptions = "cro"
opt.backspace = "indent,eol,start"
opt.conceallevel = 0
2024-10-28 14:00:13 +00:00
opt.spelllang = "en_gb"
2026-03-01 15:37:12 +00:00
opt.relativenumber = false
2024-11-17 15:09:38 +00:00
vim.opt.spell = false
2024-10-27 16:21:40 +00:00
-- 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
2025-04-06 15:37:42 +01:00
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",
},
},
2024-10-27 16:21:40 +00:00
})