mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 10:05:17 +00:00
net config
This commit is contained in:
parent
93b7b93d64
commit
dd59a54b92
36 changed files with 960 additions and 631 deletions
47
plugin/options.lua
Normal file
47
plugin/options.lua
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
-- Vim options
|
||||
local o, opt = vim.o, vim.opt
|
||||
|
||||
-- Line numbers
|
||||
o.number = true
|
||||
o.relativenumber = true
|
||||
|
||||
-- Indentation
|
||||
o.tabstop = 2
|
||||
o.shiftwidth = 2
|
||||
o.expandtab = true
|
||||
o.smartindent = true
|
||||
o.breakindent = true
|
||||
|
||||
-- Search
|
||||
o.ignorecase = true
|
||||
o.smartcase = true
|
||||
o.hlsearch = false
|
||||
o.incsearch = true
|
||||
|
||||
-- UI
|
||||
o.termguicolors = true
|
||||
o.cursorline = true
|
||||
o.scrolloff = 8
|
||||
o.signcolumn = "yes"
|
||||
o.wrap = false
|
||||
o.showmode = false
|
||||
o.laststatus = 3
|
||||
o.cmdheight = 0
|
||||
|
||||
opt.fillchars = { vert = "│", fold = "─", foldsep = "│", diff = "─" }
|
||||
opt.shortmess:append("S")
|
||||
|
||||
-- Splits
|
||||
o.splitbelow = true
|
||||
o.splitright = true
|
||||
|
||||
-- Files
|
||||
o.swapfile = false
|
||||
o.backup = false
|
||||
o.undofile = true
|
||||
o.undodir = vim.fn.stdpath("data") .. "/undo"
|
||||
|
||||
-- Misc
|
||||
o.updatetime = 250
|
||||
o.mouse = "a"
|
||||
o.clipboard = "unnamedplus"
|
||||
Loading…
Add table
Add a link
Reference in a new issue