mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 03:34:57 +08:00
添加vscode neovim相关配置
This commit is contained in:
parent
59f0ba6a45
commit
d1f5f0a2c8
12 changed files with 217 additions and 57 deletions
|
|
@ -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>
|
||||
]])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue