blob: 6b888a6f75048c27b974ce4b5b7f3f44af8f8245 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
-- General
vim.g.mapleader = " "
vim.o.undofile = true -- Persistant undo
-- UI
vim.o.cmdheight = 0 -- Puts Lualine at very bottom
vim.o.cursorline = true -- Current line highlighting
vim.o.number = true -- Show line numbers
vim.o.relativenumber = true -- Relative line numbers
vim.o.signcolumn = "yes" -- Always show signcolumn (less flicker)
vim.o.splitbelow = true -- Horizontal splits will be below
vim.o.splitright = true -- Vertical splits will be to the right
vim.o.termguicolors = true -- Enable 24-bit RGB color in TUI
vim.o.winborder = "single" -- Use border in floating windows
-- Editing
vim.o.autoindent = true -- Use auto indent
vim.o.expandtab = true -- Convert tabs to spaces
vim.o.ignorecase = true -- Ignore case during search
vim.o.incsearch = true -- Show search matches while typing
vim.o.shiftwidth = 2 -- Use this number of spaces for indentation
vim.o.smartindent = true -- Make indenting smart
vim.o.tabstop = 2 -- Show tab as this number of spaces
-- TODO: consider not using clipboard for all operations
-- see :h clipboard
vim.opt.clipboard = "unnamedplus"
vim.g.clipboard = "osc52"
|