mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: load new window terminal alacritty
This commit is contained in:
parent
d00563a0a8
commit
1c9deb6b07
5 changed files with 38 additions and 8 deletions
|
@ -69,6 +69,11 @@ function _LIVE_SERVER()
|
|||
live_server:toggle()
|
||||
end
|
||||
|
||||
function _OPEN_ALACRITTY()
|
||||
-- open alacritty new windows current directory
|
||||
vim.cmd("silent !alacritty --working-directory " .. vim.fn.getcwd())
|
||||
end
|
||||
|
||||
local setup = {
|
||||
plugins = {
|
||||
marks = true, -- shows a list of your marks on ' and `
|
||||
|
@ -317,6 +322,7 @@ local mappings = {
|
|||
h = { "<cmd>ToggleTerm size=10 direction=horizontal<cr>", "Horizontal" },
|
||||
v = { "<cmd>ToggleTerm size=80 direction=vertical<cr>", "Vertical" },
|
||||
s = { "<cmd>ToggleTerm direction=tab<cr>", "New Tab" },
|
||||
a = { "<cmd>lua _OPEN_ALACRITTY()<cr>", "Open Alacritty" },
|
||||
},
|
||||
r = {
|
||||
name = " Run",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue