tab as 4 spaces
This commit is contained in:
@@ -2,11 +2,15 @@
|
|||||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
|
|
||||||
if vim.loop.os_uname().sysname == "Windows_NT" then -- set default shell to powershell on Windows
|
if vim.loop.os_uname().sysname == "Windows_NT" then -- set default shell to pwsh/powershell on Windows
|
||||||
vim.opt.shell = "powershell.exe"
|
LazyVim.terminal.setup("powershell")
|
||||||
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"
|
|
||||||
end
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user