From a37eb0568198c472a741a5050cff5461db24a230 Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 31 Jul 2025 18:38:34 +0200 Subject: [PATCH] Small changes --- lua/taken/core/opts.lua | 15 +++++++-------- lua/taken/utils/themes.lua | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lua/taken/core/opts.lua b/lua/taken/core/opts.lua index 84661c2..ce21976 100644 --- a/lua/taken/core/opts.lua +++ b/lua/taken/core/opts.lua @@ -1,5 +1,4 @@ local g = vim.g -local o = vim.o local opt = vim.opt opt.fillchars = "eob: " @@ -12,7 +11,7 @@ g.maplocalleader = "." opt.foldmethod = "expr" opt.foldexpr = "nvim_treesitter#foldexpr()" -vim.opt.foldenable = false +opt.foldenable = false opt.nu = true opt.relativenumber = true @@ -50,11 +49,11 @@ opt.updatetime = 50 -- windows if vim.fn.has("win32") == 1 then - o.shell = "pwsh -nologo" - o.shellcmdflag = + opt.shell = "pwsh -nologo" + opt.shellcmdflag = "-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;" - 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 = "" + opt.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode" + opt.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode" + opt.shellquote = "" + opt.shellxquote = "" end diff --git a/lua/taken/utils/themes.lua b/lua/taken/utils/themes.lua index 09b4f7d..64c3170 100644 --- a/lua/taken/utils/themes.lua +++ b/lua/taken/utils/themes.lua @@ -24,7 +24,7 @@ function M.themeselector(opts) vim.cmd("SunglassesDisable") pickers - .new(combined, { + :new(vim.tbl_deep_extend("force", { prompt_title = "Colorscheme", finder = finders.new_table({ results = themes, @@ -58,7 +58,7 @@ function M.themeselector(opts) }) return true end, - }) + }, combined)) :find() end