mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
3 Commits
53c17aea96
...
116aaa0675
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
116aaa0675 | ||
|
|
12f3ca9d1f | ||
|
|
7e7944a30c |
@ -137,31 +137,6 @@ let g:mundo_width = 80
|
|||||||
|
|
||||||
nnoremap <silent> <Space>u :MundoToggle<CR>
|
nnoremap <silent> <Space>u :MundoToggle<CR>
|
||||||
|
|
||||||
""""""""""""""""""""""""""""vim-yoink settings"""""""""""""""""""""""""
|
|
||||||
if g:is_win || g:is_mac
|
|
||||||
" ctrl-n and ctrl-p will not work if you add the TextChanged event to vim-auto-save events.
|
|
||||||
" nmap <c-n> <plug>(YoinkPostPasteSwapBack)
|
|
||||||
" nmap <c-p> <plug>(YoinkPostPasteSwapForward)
|
|
||||||
|
|
||||||
" The following p/P mappings are also needed for ctrl-n and ctrl-p to work
|
|
||||||
" nmap p <plug>(YoinkPaste_p)
|
|
||||||
" nmap P <plug>(YoinkPaste_P)
|
|
||||||
|
|
||||||
" Cycle the yank stack with the following mappings
|
|
||||||
nmap [y <plug>(YoinkRotateBack)
|
|
||||||
nmap ]y <plug>(YoinkRotateForward)
|
|
||||||
|
|
||||||
" Do not change the cursor position
|
|
||||||
nmap y <plug>(YoinkYankPreserveCursorPosition)
|
|
||||||
xmap y <plug>(YoinkYankPreserveCursorPosition)
|
|
||||||
|
|
||||||
" Move cursor to end of paste after multiline paste
|
|
||||||
let g:yoinkMoveCursorToEndOfPaste = 0
|
|
||||||
|
|
||||||
" Record yanks in system clipboard
|
|
||||||
let g:yoinkSyncSystemClipboardOnFocus = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
""""""""""""""""""""""""""""better-escape.vim settings"""""""""""""""""""""""""
|
""""""""""""""""""""""""""""better-escape.vim settings"""""""""""""""""""""""""
|
||||||
let g:better_escape_interval = 200
|
let g:better_escape_interval = 200
|
||||||
|
|
||||||
|
|||||||
13
lua/config/yanky.lua
Normal file
13
lua/config/yanky.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
require("yanky").setup({
|
||||||
|
ring = {
|
||||||
|
history_length = 50,
|
||||||
|
storage = "memory",
|
||||||
|
},
|
||||||
|
preserve_cursor_position = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- cycle through the yank history, only work after paste
|
||||||
|
vim.keymap.set("n", "[y", "<Plug>(YankyCycleForward)")
|
||||||
|
vim.keymap.set("n", "]y", "<Plug>(YankyCycleBackward)")
|
||||||
@ -208,10 +208,14 @@ packer.startup {
|
|||||||
-- Show undo history visually
|
-- Show undo history visually
|
||||||
use { "simnalamburt/vim-mundo", cmd = { "MundoToggle", "MundoShow" } }
|
use { "simnalamburt/vim-mundo", cmd = { "MundoToggle", "MundoShow" } }
|
||||||
|
|
||||||
|
-- better UI for some nvim actions
|
||||||
|
use {'stevearc/dressing.nvim'}
|
||||||
|
|
||||||
-- Manage your yank history
|
-- Manage your yank history
|
||||||
if vim.g.is_win or vim.g.is_mac then
|
use({
|
||||||
use { "svermeulen/vim-yoink", event = "VimEnter" }
|
"gbprod/yanky.nvim",
|
||||||
end
|
config = [[require('config.yanky')]]
|
||||||
|
})
|
||||||
|
|
||||||
-- Handy unix command inside Vim (Rename, Move etc.)
|
-- Handy unix command inside Vim (Rename, Move etc.)
|
||||||
use { "tpope/vim-eunuch", cmd = { "Rename", "Delete" } }
|
use { "tpope/vim-eunuch", cmd = { "Rename", "Delete" } }
|
||||||
|
|||||||
@ -1,2 +1,3 @@
|
|||||||
" some abbreviations
|
" some abbreviations
|
||||||
iabbrev reqire require
|
iabbrev reqire require
|
||||||
|
iabbrev serveral several
|
||||||
|
|||||||
@ -453,3 +453,8 @@ SQLite
|
|||||||
Pgadmin
|
Pgadmin
|
||||||
Datagrip
|
Datagrip
|
||||||
mysql
|
mysql
|
||||||
|
cwd
|
||||||
|
pyright
|
||||||
|
stubgen
|
||||||
|
pylance
|
||||||
|
variadic
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user