Terminal splits
This commit is contained in:
20
init.lua
20
init.lua
@@ -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")
|
|
||||||
|
|||||||
@@ -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 })
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
return {
|
|
||||||
"wakatime/vim-wakatime"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user