neovim setup
This commit is contained in:
50
lua/config/options.lua
Normal file
50
lua/config/options.lua
Normal file
@@ -0,0 +1,50 @@
|
||||
local opt = vim.opt
|
||||
|
||||
-- Tab / Indentation
|
||||
opt.tabstop = 2
|
||||
opt.shiftwidth = 2
|
||||
opt.softtabstop = 2
|
||||
opt.expandtab = true
|
||||
opt.smartindent = true
|
||||
opt.wrap = false
|
||||
|
||||
-- Search
|
||||
opt.incsearch = true
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
opt.hlsearch = false
|
||||
|
||||
-- Appearance
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.termguicolors = true
|
||||
opt.colorcolumn = '100'
|
||||
opt.signcolumn = 'yes'
|
||||
opt.cmdheight = 1
|
||||
opt.scrolloff = 10
|
||||
opt.completeopt = "menuone,noinsert,noselect"
|
||||
|
||||
-- Behaviour
|
||||
opt.hidden = true
|
||||
opt.errorbells = false
|
||||
opt.swapfile = false
|
||||
opt.backup = false
|
||||
opt.undodir = vim.fn.expand("~/.vim/undodir")
|
||||
opt.undofile = true
|
||||
opt.backspace = "indent,eol,start"
|
||||
opt.splitright = true
|
||||
opt.splitbelow = true
|
||||
opt.autochdir = false
|
||||
opt.iskeyword:append("-")
|
||||
opt.selection = "exclusive"
|
||||
opt.mouse = "a"
|
||||
opt.clipboard:append("unnamedplus")
|
||||
opt.modifiable = true
|
||||
opt.guicursor = "n-v-c:block,i-ci-ve:block,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175"
|
||||
opt.encoding = "UTF-8"
|
||||
opt.showmode = false
|
||||
|
||||
-- folds
|
||||
opt.foldmethod = "expr"
|
||||
opt.foldexpr = "nvim_treesiter#foldexpr()"
|
||||
opt.foldlevel = 99
|
||||
Reference in New Issue
Block a user