init
This commit is contained in:
commit
03d3e82120
7 changed files with 444 additions and 0 deletions
40
options.lua
Normal file
40
options.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
vim.g.mapleader = ","
|
||||
vim.g.maplocalleader = ",,"
|
||||
|
||||
vim.opt.encoding = "utf-8"
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.expandtab = false
|
||||
vim.opt.numberwidth = 1
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
vim.opt.confirm = true
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.listchars = "tab:│ "
|
||||
vim.opt.list = true
|
||||
vim.opt.undofile = true
|
||||
vim.opt.undodir = os.getenv("HOME").."/.local/nvim/undo"
|
||||
vim.opt.hidden = true
|
||||
-- vim.opt.formatoptions-=cro
|
||||
vim.opt.foldmethod = "indent"
|
||||
vim.opt.foldlevelstart = 20
|
||||
vim.opt.swapfile = false
|
||||
-- vim.opt.omnifunc=syntaxcomplete#Complete
|
||||
-- vim.opt.completeopt+=preview
|
||||
vim.opt.cmdheight = 2
|
||||
vim.opt.updatetime = 300
|
||||
vim.opt.mouse = ""
|
||||
|
||||
|
||||
vim.cmd([[
|
||||
autocmd BufRead,BufNewFile * set autoindent noexpandtab tabstop=4 shiftwidth=4
|
||||
]])
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue