fix(nvim): mapping

This commit is contained in:
2021-03-21 11:35:47 +08:00
parent f6b76fe898
commit 1faa19ad2b
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -8,6 +8,7 @@ require("bufferline.lua")
require("statusline.lua")
require("telescope-nvim.lua")
-- lsp
require("nvim-lspconfig.lua")
require("nvim-compe.lua")
+2 -2
View File
@@ -10,7 +10,7 @@ end
map("", "<leader>c", '"+y')
-- open terminals
map("n", "<C-b>" , [[<Cmd> vnew term://bash<CR>]] , opt) -- split term vertically , over the right
map("n", "<C-`>" , [[<Cmd> vnew term://bash<CR>]] , opt) -- split term vertically , over the right
map("n", "<C-x>" , [[<Cmd> split term://bash | resize 10 <CR>]] , opt) -- split term vertically , over the right
-- file
map("n","<leader>fs",[[<Cmd> w<CR>]])
@@ -18,7 +18,7 @@ map("n","<leader>fs",[[<Cmd> w<CR>]])
-- buffer
map("n", "<leader>bn",[[<Cmd> bnext<CR>]])
map("n", "<leader>bp",[[<Cmd> bprev<CR>]])
map("n", "<leader>bd",[[<Cmd> w\|bd<cr><CR>]])
map("n", "<leader>bd",[[<Cmd> bd<CR>]])
-- window
map("n", "<C-h>",[[<C-w>h<CR>]])