formatting changes?
This commit is contained in:
parent
2eb81c1d93
commit
ec9a04ae33
1 changed files with 6 additions and 3 deletions
9
init.lua
9
init.lua
|
@ -53,7 +53,7 @@ autocmd("VimResized", {
|
||||||
if vim.loop.os_uname() == "win32" then
|
if vim.loop.os_uname() == "win32" then
|
||||||
vim.opt.shell = vim.fn.executable "pwsh" == 1 and "pwsh" or "powershell"
|
vim.opt.shell = vim.fn.executable "pwsh" == 1 and "pwsh" or "powershell"
|
||||||
vim.opt.shellcmdflag =
|
vim.opt.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.opt.shellredir = "-RedirectStandardOutput %s -NoNewWindow -Wait"
|
vim.opt.shellredir = "-RedirectStandardOutput %s -NoNewWindow -Wait"
|
||||||
vim.opt.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
vim.opt.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
|
||||||
vim.opt.shellquote = ""
|
vim.opt.shellquote = ""
|
||||||
|
@ -67,13 +67,13 @@ vim.opt.cursorline = true
|
||||||
vim.g.copilot_assume_mapped = true
|
vim.g.copilot_assume_mapped = true
|
||||||
-- ufo config
|
-- ufo config
|
||||||
vim.o.foldcolumn = "0" -- '0' is not bad
|
vim.o.foldcolumn = "0" -- '0' is not bad
|
||||||
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
||||||
vim.o.foldlevelstart = 99
|
vim.o.foldlevelstart = 99
|
||||||
-- vim.o.foldenable = true
|
-- vim.o.foldenable = true
|
||||||
vim.opt.wildmode = { "list", "lastused" }
|
vim.opt.wildmode = { "list", "lastused" }
|
||||||
vim.opt.wildmenu = true
|
vim.opt.wildmenu = true
|
||||||
vim.opt.autoread = true
|
vim.opt.autoread = true
|
||||||
|
vim.o.clipboard = "unnamed,unnamedplus"
|
||||||
vim.g.clipboard = {
|
vim.g.clipboard = {
|
||||||
name = "OSC 52",
|
name = "OSC 52",
|
||||||
copy = {
|
copy = {
|
||||||
|
@ -85,3 +85,6 @@ vim.g.clipboard = {
|
||||||
["*"] = require("vim.ui.clipboard.osc52").paste "*",
|
["*"] = require("vim.ui.clipboard.osc52").paste "*",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
if vim.g.neovide then
|
||||||
|
vim.o.guifont = "MonaspiceNe Nerd Font:h12"
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue