Update mappings.lua
This commit is contained in:
parent
e12117a611
commit
d7c0e1fefb
@ -1,4 +1,4 @@
|
|||||||
local function map(mode, lhs, rhs, opts)
|
local function map(mode, lhs, rhs, opts)
|
||||||
local options = {noremap = true}
|
local options = {noremap = true}
|
||||||
if opts then
|
if opts then
|
||||||
options = vim.tbl_extend("force", options, opts)
|
options = vim.tbl_extend("force", options, opts)
|
||||||
@ -16,13 +16,12 @@ map("v", "dd", [=[ "_dd ]=], opt)
|
|||||||
map("v", "x", [=[ "_x ]=], opt)
|
map("v", "x", [=[ "_x ]=], opt)
|
||||||
|
|
||||||
this line too ]]
|
this line too ]]
|
||||||
|
|
||||||
-- OPEN TERMINALS --
|
-- OPEN TERMINALS --
|
||||||
map("n", "<C-l>", [[<Cmd>vnew term://bash<CR>]], opt) -- over right
|
map("n", "<C-l>", [[<Cmd>vnew term://bash <CR>]], opt) -- term over right
|
||||||
map("n", "<C-x>", [[<Cmd> split term://bash| resize 10 <CR>]], opt) -- bottom
|
map("n", "<C-x>", [[<Cmd> split term://bash | resize 10 <CR>]], opt) -- term bottom
|
||||||
map("n", "<C-t>t", [[<Cmd> tabnew | term <CR>]], opt) -- newtab
|
map("n", "<C-t>t", [[<Cmd> tabnew | term <CR>]], opt) -- term newtab
|
||||||
|
|
||||||
-- COPY EVERYTHING in the file--
|
-- COPY EVERYTHING --
|
||||||
map("n", "<C-a>", [[ <Cmd> %y+<CR>]], opt)
|
map("n", "<C-a>", [[ <Cmd> %y+<CR>]], opt)
|
||||||
|
|
||||||
-- toggle numbers ---
|
-- toggle numbers ---
|
||||||
@ -32,4 +31,5 @@ map("n", "<leader>n", [[ <Cmd> set nu!<CR>]], opt)
|
|||||||
map("n", "<leader>z", [[ <Cmd> TZAtaraxis<CR>]], opt)
|
map("n", "<leader>z", [[ <Cmd> TZAtaraxis<CR>]], opt)
|
||||||
map("n", "<leader>m", [[ <Cmd> TZMinimalist<CR>]], opt)
|
map("n", "<leader>m", [[ <Cmd> TZMinimalist<CR>]], opt)
|
||||||
|
|
||||||
map("n", "<C-s>", [[ <Cmd> w <CR>]], opt) -- save
|
map("n", "<C-s>", [[ <Cmd> w <CR>]], opt)
|
||||||
|
-- vim.cmd("inoremap jh <Esc>")
|
||||||
|
Loading…
Reference in New Issue
Block a user