Config changes

- replaced tabstop with softtabstop
- add autoindent
- modeline for lua
This commit is contained in:
juan 2022-05-31 11:33:28 +08:00
parent 864818059c
commit a821a26183
Signed by: juan
GPG Key ID: 5C1E5093C74F1DC7
2 changed files with 6 additions and 4 deletions

View File

@ -5,13 +5,13 @@ local global = vim.g
-- look and feel
vim.opt.shortmess:append({I = true}) -- remove intro message
opt.termguicolors = true
opt.ruler = true
opt.relativenumber = true
opt.number = true
opt.showmode = false
opt.scrolloff = 10
opt.ruler = true
opt.termguicolors = true
opt.tabstop = 2
opt.softtabstop = 2
opt.shiftwidth = 2
-- controlling
@ -19,6 +19,7 @@ opt.ignorecase = true
opt.smartcase = true
opt.smartindent = true
opt.mouse = "i"
opt.autoindent = true
-- completion for lua
opt.completeopt = 'noinsert'

View File

@ -196,3 +196,4 @@ return require('packer').startup(function(use)
use {"tpope/vim-fugitive", cmd = "G"}
use {"JuanCldCmt/glow.nvim", branch = 'main', cmd = {"Glow", "GlowInstall"}}
end)
-- vim:set shiftwidth=4 tabstop=4: