添加vscode neovim相关配置

This commit is contained in:
a770 2025-05-31 11:38:43 +08:00
parent 59f0ba6a45
commit d1f5f0a2c8
12 changed files with 217 additions and 57 deletions

View file

@ -30,7 +30,7 @@ mapcmd("<leader><cr>", "nohlsearch")
-- 保存和退出
mapkey("", "S", ":wall<cr>")
mapkey("", "Q", ":q<cr>")
mapkey("", "Q", ":qall<cr>")
-- 撤销与反撤销
mapkey("", "l", "u")
@ -209,7 +209,7 @@ vim.cmd([[
au filetype dart noremap r :wall<cr>:Telescope flutter commands<cr>
au filetype python noremap r :wall<cr>:set splitbelow<cr>:sp<cr>:term uv run %<cr>
au filetype go noremap r :wall<cr>:set splitbelow<cr>:sp<cr>:term go run %<cr>
au filetype markdown noremap r :MarkdownPreview<cr>
au filetype markdown noremap r :PeekClose<cr>:PeekOpen<cr>
au filetype rust noremap r :wall<cr>:set splitbelow<cr>:sp<cr>:term cargo run<cr>
]])