From 449551fabbe8cffe47fa7559212258a42c69b717 Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 19 Sep 2023 11:46:16 +0200 Subject: [PATCH] Changing opts Signed-off-by: Taken --- lua/taken/core/opts.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lua/taken/core/opts.lua b/lua/taken/core/opts.lua index e65223d..648272f 100644 --- a/lua/taken/core/opts.lua +++ b/lua/taken/core/opts.lua @@ -1,4 +1,5 @@ local g = vim.g +local o = vim.o local opt = vim.opt local cmd = vim.cmd @@ -10,8 +11,8 @@ opt.fillchars = "eob: " g.mapleader = " " g.maplocalleader = "." --- opt.cursorline = true --- opt.cursorcolumn = true +opt.cursorline = true +opt.cursorcolumn = true opt.nu = true opt.relativenumber = true @@ -53,11 +54,11 @@ g.loaded_netrwPlugin = 1 -- windows if vim.fn.has("win32") == 1 then - vim.o.shell = "pwsh" - vim.o.shellcmdflag = + o.shell = "pwsh" + o.shellcmdflag = "-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" - vim.o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode" - vim.o.shellquote = "" - vim.o.shellxquote = "" + o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode" + o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode" + o.shellquote = "" + o.shellxquote = "" end