update: add options for tabs vs spaces

two empty spaces instead of tab are being inserted when pressing tab
This commit is contained in:
Pascal Popp 2024-07-30 16:30:12 +02:00
parent 683a43c85a
commit e76c561564
1 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,12 @@ I hope you enjoy your Neovim journey,
P.S. You can delete this when you're done too. It's your config now! :)
--]]
-- Tabs vs spaces
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)