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

View File

@ -147,7 +147,7 @@ return require('packer').startup(function(use)
use { use {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
after = {"nvim-treesitter", "nvim-treesitter-context"}, after = {"nvim-treesitter", "nvim-treesitter-context"},
event = "UIEnter", event = "UIEnter",
config = function() require "plugins.indent-blankline" end config = function() require "plugins.indent-blankline" end
} }
use { use {
@ -196,3 +196,4 @@ return require('packer').startup(function(use)
use {"tpope/vim-fugitive", cmd = "G"} use {"tpope/vim-fugitive", cmd = "G"}
use {"JuanCldCmt/glow.nvim", branch = 'main', cmd = {"Glow", "GlowInstall"}} use {"JuanCldCmt/glow.nvim", branch = 'main', cmd = {"Glow", "GlowInstall"}}
end) end)
-- vim:set shiftwidth=4 tabstop=4: