new
This commit is contained in:
parent
d3af2e83f1
commit
77035a2af4
21 changed files with 2325 additions and 0 deletions
57
new/lua/config/sets.lua
Executable file
57
new/lua/config/sets.lua
Executable file
|
@ -0,0 +1,57 @@
|
|||
-- numbers
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- tab && indent
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 0
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.smartindent = true
|
||||
vim.o.breakindent = true
|
||||
|
||||
-- lines
|
||||
vim.opt.wrap = true
|
||||
vim.opt.smarttab = true
|
||||
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars:append "eol:↴"
|
||||
|
||||
-- undo
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.local/share/nvim/undofile"
|
||||
vim.opt.undofile = true
|
||||
|
||||
-- search
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
|
||||
-- colors
|
||||
vim.opt.termguicolors = true
|
||||
vim.cmd.colorscheme "melange"
|
||||
|
||||
vim.opt.cursorline = true
|
||||
|
||||
-- misc
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.sidescrolloff = 8
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.isfname:append("@-@")
|
||||
vim.opt.updatetime = 50
|
||||
vim.opt.timeoutlen = 300
|
||||
vim.o.mouse = "a"
|
||||
vim.opt.showmode = false
|
||||
|
||||
vim.g.have_nerd_font = true
|
||||
|
||||
vim.o.completeopt = "menuone,noselect"
|
||||
|
||||
-- vim.filetype.add({extension = {leaf = 'html'}})
|
||||
|
||||
|
||||
vim.wo.foldmethod = "manual"
|
||||
vim.opt.foldcolumn = "1"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue