Use 2 space tabs by default & disable unused providers

This commit is contained in:
Kenneth Benzie 2024-03-02 15:18:59 +00:00
parent a5e1d8cdaf
commit ff5b0cff1f

View File

@ -1,5 +1,8 @@
-- Enable line numbers & use relative line number for current line
vim.opt.number = true vim.opt.number = true
vim.opt.relativenumber = true vim.opt.relativenumber = true
-- Always display the sign column
vim.opt.signcolumn = 'yes' vim.opt.signcolumn = 'yes'
vim.opt.sidescrolloff = 5 vim.opt.sidescrolloff = 5
vim.opt.list = true vim.opt.list = true
@ -19,3 +22,15 @@ vim.opt.switchbuf = 'usetab'
vim.opt.autowrite = true vim.opt.autowrite = true
vim.opt.joinspaces = false vim.opt.joinspaces = false
vim.opt.mouse = 'a' vim.opt.mouse = 'a'
-- Use 2 space tabs by default
vim.opt.expandtab = true
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2
vim.opt.smartindent = true
vim.opt.cinoptions = 'N-sE-sg1h1l1(0,W4i2'
-- Disable unused providers
vim.g.loaded_node_provider = 0
vim.g.loaded_perl_provider = 0
vim.g.loaded_ruby_provider = 0