diff --git a/lua/config/options.lua b/lua/config/options.lua index 6a04554..0d0c3f6 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -2,11 +2,15 @@ -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here -if vim.loop.os_uname().sysname == "Windows_NT" then -- set default shell to powershell on Windows - vim.opt.shell = "powershell.exe" - vim.opt.shellcmdflag = "-Command" - vim.opt.shellquote = "" - vim.opt.shellxquote = "" - vim.opt.shellredir = "2>&1 | Out-File -Encoding ASCII %s; exit $LastExitCode" - vim.opt.shellpipe = "2>&1 | Out-File -Encoding ASCII %s; exit $LastExitCode" +if vim.loop.os_uname().sysname == "Windows_NT" then -- set default shell to pwsh/powershell on Windows + LazyVim.terminal.setup("powershell") end + +-- Tabs +vim.opt.tabstop = 4 -- number of visual spaces per TAB +vim.opt.softtabstop = 4 -- number of spacesin tab when editing +vim.opt.shiftwidth = 4 -- Size of an indent +vim.opt.expandtab = true -- tabs are spaces, mainly because of python + +vim.g.autoformat = false +