Terminal splits

This commit is contained in:
Saeed Afzal
2024-10-10 00:19:38 +01:00
parent ef1da5ea8d
commit 97cb8d4758
3 changed files with 5 additions and 23 deletions

View File

@@ -1,22 +1,2 @@
-- Core configuration -- Core configuration
require "core" require "core"
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
-- Load plugins
require("lazy").setup("plugins")

View File

@@ -21,3 +21,8 @@ end, { nargs = "?" })
api.nvim_create_user_command("Spaces", function(v) api.nvim_create_user_command("Spaces", function(v)
indent(v.args, true) indent(v.args, true)
end, { nargs = "?" }) end, { nargs = "?" })
api.nvim_create_user_command("TE", function(v)
vim.cmd("split")
vim.cmd("term " .. v.args)
end, { nargs = "*", force = true })

View File

@@ -1,3 +0,0 @@
return {
"wakatime/vim-wakatime"
}