[UPDATE] only use pwsh in windows
This commit is contained in:
18
init.lua
18
init.lua
@@ -1,12 +1,18 @@
|
|||||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
local os_info = require("os_info")
|
||||||
|
|
||||||
-- powershell so my shit compiles with zig when i install
|
-- powershell so my shit compiles with zig when i install
|
||||||
vim.o.shell = "pwsh"
|
if os_info.is_windows then
|
||||||
vim.o.shellcmdflag = "-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
|
vim.o.shell = "pwsh"
|
||||||
vim.o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
vim.o.shellcmdflag =
|
||||||
vim.o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
"-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
|
||||||
vim.o.shellquote = ""
|
vim.o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
||||||
vim.o.shellxquote = ""
|
vim.o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
||||||
|
vim.o.shellquote = ""
|
||||||
|
vim.o.shellxquote = ""
|
||||||
|
end
|
||||||
|
|
||||||
-- colourscheme
|
-- colourscheme
|
||||||
vim.cmd("colorscheme wildcharm")
|
vim.cmd("colorscheme wildcharm")
|
||||||
vim.api.nvim_set_hl(0, "Normal", { bg = "#18131e" })
|
vim.api.nvim_set_hl(0, "Normal", { bg = "#18131e" })
|
||||||
|
|||||||
Reference in New Issue
Block a user