70 lines
1.6 KiB
Lua
70 lines
1.6 KiB
Lua
vim.cmd("let g:netrw_liststyle = 3")
|
|
|
|
local opt = vim.opt
|
|
|
|
opt.relativenumber = true
|
|
opt.number = true
|
|
|
|
opt.tabstop = 2 -- 2 spaces for tabs (prettier default)
|
|
opt.shiftwidth = 2 -- 2 spaces for indent width
|
|
opt.expandtab = true -- expand tab to spaces
|
|
opt.autoindent = true -- copy indent from current line when starting new one
|
|
|
|
-- line wrapping
|
|
opt.wrap = false -- disable line wrapping
|
|
|
|
-- search settings
|
|
opt.ignorecase = true -- ignore case when searching
|
|
opt.smartcase = true -- if you include mixed case in your search, assumes you want case-sensitive
|
|
|
|
-- cursor line
|
|
opt.cursorline = true -- highlight the current cursor line
|
|
|
|
-- appearance
|
|
-- turn on termguicolors for nightfly colorscheme to work
|
|
opt.termguicolors = true
|
|
opt.signcolumn = "yes" -- show sign column so that text doesn't shift
|
|
|
|
-- backspace
|
|
opt.backspace = "indent,eol,start" -- allow backspace on indent, end of line or insert mode start position
|
|
|
|
-- clipboard
|
|
opt.clipboard:append("unnamed") -- use system clipboard as default register
|
|
|
|
-- split windows
|
|
opt.splitright = true -- split vertical window to the right
|
|
opt.splitbelow = true -- split horizontal window to the bottom
|
|
|
|
-- turn off swapfile
|
|
opt.swapfile = false
|
|
|
|
-- Enable mouse mode
|
|
opt.mouse = 'a'
|
|
|
|
-- Enable break indent
|
|
opt.breakindent = true
|
|
|
|
-- Save undo history
|
|
opt.undofile = true
|
|
|
|
-- Decrease update time
|
|
opt.updatetime = 50
|
|
opt.timeoutlen = 300
|
|
|
|
-- Set completeopt to have a better completion experience
|
|
opt.completeopt = 'menuone,noselect'
|
|
|
|
-- transparent_window
|
|
vim.transparent_window = true
|
|
|
|
-- set incremental search
|
|
opt.hlsearch = false
|
|
opt.incsearch = true
|
|
|
|
--scroll off
|
|
opt.scrolloff = 10
|
|
|
|
--vim colour column
|
|
--opt.colorcolumn = "80"
|
|
|