@@ -1,4 +1,5 @@
|
|||||||
local g = vim.g
|
local g = vim.g
|
||||||
|
local o = vim.o
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
local cmd = vim.cmd
|
local cmd = vim.cmd
|
||||||
|
|
||||||
@@ -10,8 +11,8 @@ opt.fillchars = "eob: "
|
|||||||
g.mapleader = " "
|
g.mapleader = " "
|
||||||
g.maplocalleader = "."
|
g.maplocalleader = "."
|
||||||
|
|
||||||
-- opt.cursorline = true
|
opt.cursorline = true
|
||||||
-- opt.cursorcolumn = true
|
opt.cursorcolumn = true
|
||||||
|
|
||||||
opt.nu = true
|
opt.nu = true
|
||||||
opt.relativenumber = true
|
opt.relativenumber = true
|
||||||
@@ -53,11 +54,11 @@ g.loaded_netrwPlugin = 1
|
|||||||
|
|
||||||
-- windows
|
-- windows
|
||||||
if vim.fn.has("win32") == 1 then
|
if vim.fn.has("win32") == 1 then
|
||||||
vim.o.shell = "pwsh"
|
o.shell = "pwsh"
|
||||||
vim.o.shellcmdflag =
|
o.shellcmdflag =
|
||||||
"-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
|
"-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
|
||||||
vim.o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
||||||
vim.o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
||||||
vim.o.shellquote = ""
|
o.shellquote = ""
|
||||||
vim.o.shellxquote = ""
|
o.shellxquote = ""
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user