Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaao-Bai committed Dec 10, 2023
1 parent 6d96189 commit 3a01700
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 2 additions & 0 deletions dockerfile/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# build smart_nvim docker env

#how to build:
# do this locally
# 1. git clone --depth 1 https://github.com/wbthomason/packer.nvim\
Expand Down
20 changes: 8 additions & 12 deletions lua/keybindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,22 @@ map("n", "<leader>q", ":qa!<CR>", opt)
-- 取消 s 默认功能
map("n", "s", "", opt)
map("n", "sv", ":vsp<CR>", opt)
map("n", "sh", ":sp<CR>", opt)
map("n", "sp", ":sp<CR>", opt)
-- 关闭当前
map("n", "sc", "<C-w>c", opt)
-- 关闭其他
map("n", "so", "<C-w>o", opt) -- close others
-- shift + hjkl/arrow 窗口之间跳转
-- map("n", "<S-h>", "<C-w>h", opt)
-- map("n", "<S-j>", "<C-w>j", opt)
-- map("n", "<S-k>", "<C-w>k", opt)
-- map("n", "<S-l>", "<C-w>l", opt)
map("n", "<S-Left>", "<C-w>h", opt)
map("n", "<S-Down>", "<C-w>j", opt)
map("n", "<S-Up>", "<C-w>k", opt)
map("n", "<S-Right>", "<C-w>l", opt)
-- s + hjkl 窗口之间跳转
map("n", "sh", "<C-w>h", opt)
map("n", "sj", "<C-w>j", opt)
map("n", "sk", "<C-w>k", opt)
map("n", "sl", "<C-w>l", opt)
-- 左右比例控制
map("n", "s,", ":vertical resize -10<CR>", opt)
map("n", "s.", ":vertical resize +10<CR>", opt)
-- 上下比例
map("n", "sj", ":resize +10<CR>", opt)
map("n", "sk", ":resize -10<CR>", opt)
map("n", "su", ":resize +10<CR>", opt)
map("n", "sd", ":resize -10<CR>", opt)
-- 相等比例
map("n", "s=", "<C-w>=", opt)

Expand Down

0 comments on commit 3a01700

Please sign in to comment.