55 lines
1.1 KiB
Lua
55 lines
1.1 KiB
Lua
-- See `:help vim.o`
|
|
|
|
-- Disable intro message
|
|
vim.opt.shortmess = vim.opt.shortmess + 'I'
|
|
|
|
vim.opt.showmode = false
|
|
|
|
-- Set highlight on search
|
|
vim.o.hlsearch = true -- false
|
|
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
|
|
|
-- Make line numbers default
|
|
vim.wo.number = true
|
|
vim.wo.relativenumber = true
|
|
|
|
-- Enable mouse mode
|
|
vim.o.mouse = 'a'
|
|
|
|
-- Enable break indent
|
|
vim.o.breakindent = true
|
|
|
|
-- Save undo history
|
|
vim.o.undofile = true
|
|
|
|
-- Case-insensitive searching UNLESS \C or capital in search
|
|
vim.o.ignorecase = true
|
|
vim.o.smartcase = true
|
|
|
|
-- Keep signcolumn on by default
|
|
vim.wo.signcolumn = 'yes'
|
|
|
|
-- Decrease update time
|
|
vim.o.updatetime = 250
|
|
vim.o.timeoutlen = 300
|
|
|
|
-- Set completeopt to have a better completion experience
|
|
vim.o.completeopt = 'menuone,noselect'
|
|
|
|
-- NOTE: You should make sure your terminal supports this
|
|
vim.o.termguicolors = true
|
|
|
|
vim.o.scrolloff = 8
|
|
|
|
vim.o.tabstop = 8
|
|
vim.o.softtabstop = 4
|
|
vim.o.shiftwidth = 4
|
|
vim.o.expandtab = true
|
|
vim.o.expandtab = true
|
|
|
|
vim.g.lightspeed_no_default_keymaps = true
|
|
|
|
vim.o.cursorline = true
|
|
|
|
vim.opt.foldcolumn = '1'
|