initial import
This commit is contained in:
commit
f9f53656f7
32 changed files with 1064 additions and 0 deletions
61
lua/config/settings.lua
Normal file
61
lua/config/settings.lua
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
local opt = vim.opt
|
||||
|
||||
local wo = vim.wo
|
||||
local cmd = vim.cmd
|
||||
local g = vim.g
|
||||
|
||||
g.mapleader = "\\"
|
||||
g.maplocalleader = " "
|
||||
|
||||
opt.cindent = true
|
||||
opt.colorcolumn = "80"
|
||||
opt.clipboard:append({ "unnamed", "unnamedplus" })
|
||||
opt.expandtab = true
|
||||
opt.exrc = true
|
||||
opt.foldmethod = "syntax"
|
||||
opt.foldcolumn = "1"
|
||||
opt.foldlevelstart = 20
|
||||
opt.ignorecase = true
|
||||
opt.incsearch = true
|
||||
opt.inccommand = "split"
|
||||
opt.mouse = "a"
|
||||
opt.completeopt = "menuone,noselect"
|
||||
wo.wrap = false
|
||||
opt.number = true
|
||||
opt.path = { "." }
|
||||
opt.signcolumn = "yes"
|
||||
opt.shiftwidth = 2
|
||||
opt.smartcase = true
|
||||
opt.smarttab = true
|
||||
opt.spell = false
|
||||
opt.spelllang = "en_us"
|
||||
opt.scrolloff = 8
|
||||
opt.relativenumber = true
|
||||
opt.tabstop = 2
|
||||
opt.wildignore = {
|
||||
"node_modules/**",
|
||||
".git/**",
|
||||
".settings/**",
|
||||
".mvn/**",
|
||||
"*.pyc",
|
||||
}
|
||||
opt.wildcharm = vim.fn.char2nr("<C-z>")
|
||||
opt.list = true
|
||||
opt.listchars = "eol:↩,tab: "
|
||||
|
||||
opt.title = true
|
||||
opt.showmode = false
|
||||
|
||||
vim.o.updatetime = 250
|
||||
vim.o.ch = 0
|
||||
|
||||
opt.syntax = "enable"
|
||||
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = vim.fn.expand("~/.vim/undodir")
|
||||
vim.opt.undofile = true
|
||||
|
||||
if vim.fn.has("termguicolors") == 1 then
|
||||
opt.termguicolors = true
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue