7
lua/taken/core/bootstrap.lua
Normal file
7
lua/taken/core/bootstrap.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
local configDir = vim.fn.stdpath("config")
|
||||
local prefs = configDir .. "/lua/taken/prefs.lua"
|
||||
local example = configDir .. "/lua/taken/prefs.lua.example"
|
||||
|
||||
if vim.fn.filereadable(prefs) == 0 then
|
||||
vim.cmd("silent! !cp " .. example .. " " .. prefs)
|
||||
end
|
||||
@@ -2,3 +2,4 @@ require("taken.core.autocmd")
|
||||
require("taken.core.opts")
|
||||
require("taken.core.gui")
|
||||
require("taken.core.remaps")
|
||||
require("taken.core.bootstrap")
|
||||
|
||||
@@ -44,3 +44,14 @@ vim.o.timeoutlen = 300
|
||||
-- Options for nvim-tree
|
||||
g.loaded_netrw = 1
|
||||
g.loaded_netrwPlugin = 1
|
||||
|
||||
-- windows
|
||||
if vim.fn.has("win32") == 1 then
|
||||
vim.o.shell = "pwsh"
|
||||
vim.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 = ""
|
||||
end
|
||||
|
||||
3
lua/taken/custom/init.lua
Normal file
3
lua/taken/custom/init.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
local prefs = require("taken.prefs")
|
||||
|
||||
vim.cmd("colorscheme " .. prefs.colorscheme)
|
||||
@@ -1,3 +1,3 @@
|
||||
require("taken.core")
|
||||
require("taken.lazy")
|
||||
require("taken.prefs")
|
||||
require("taken.custom")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
local M = {
|
||||
colorscheme = "catppuccin-mocha"
|
||||
}
|
||||
local M = {}
|
||||
|
||||
vim.cmd("colorscheme " .. M.colorscheme)
|
||||
M.colorscheme = "catppuccin-mocha"
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user