mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
No commits in common. "e3930e8aa705cf6dfe66470b000ce637cab034e3" and "a3c8b3d5b59526f247bffa56ad9fba723d61feaf" have entirely different histories.
e3930e8aa7
...
a3c8b3d5b5
@ -1,17 +1,13 @@
|
|||||||
require("yanky").setup {
|
require("yanky").setup({
|
||||||
|
ring = {
|
||||||
|
history_length = 50,
|
||||||
|
storage = "memory",
|
||||||
|
},
|
||||||
preserve_cursor_position = {
|
preserve_cursor_position = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
highlight = {
|
})
|
||||||
on_put = true,
|
|
||||||
on_yank = false,
|
|
||||||
timer = 300,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.keymap.set({ "n", "x" }, "p", "<Plug>(YankyPutAfter)")
|
|
||||||
vim.keymap.set({ "n", "x" }, "P", "<Plug>(YankyPutBefore)")
|
|
||||||
|
|
||||||
-- cycle through the yank history, only work after paste
|
-- cycle through the yank history, only work after paste
|
||||||
vim.keymap.set("n", "[y", "<Plug>(YankyPreviousEntry)")
|
vim.keymap.set("n", "[y", "<Plug>(YankyCycleForward)")
|
||||||
vim.keymap.set("n", "]y", "<Plug>(YankyNextEntry)")
|
vim.keymap.set("n", "]y", "<Plug>(YankyCycleBackward)")
|
||||||
|
|||||||
15
lua/config/zen-mode.lua
Normal file
15
lua/config/zen-mode.lua
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
require("zen-mode").setup {
|
||||||
|
window = {
|
||||||
|
backdrop = 0.8, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
|
||||||
|
width = 120,
|
||||||
|
options = {
|
||||||
|
-- signcolumn = "no", -- disable signcolumn
|
||||||
|
-- number = false, -- disable number column
|
||||||
|
-- relativenumber = false, -- disable relative numbers
|
||||||
|
cursorline = false, -- disable cursorline
|
||||||
|
cursorcolumn = false, -- disable cursor column
|
||||||
|
foldcolumn = "0", -- disable fold column
|
||||||
|
list = false, -- disable whitespace characters
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -62,6 +62,9 @@ local plugin_specs = {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Python indent (follows the PEP8 style)
|
||||||
|
{ "Vimjas/vim-python-pep8-indent", ft = { "python" } },
|
||||||
|
|
||||||
-- Python-related text object
|
-- Python-related text object
|
||||||
{ "jeetsukumaran/vim-pythonsense", ft = { "python" } },
|
{ "jeetsukumaran/vim-pythonsense", ft = { "python" } },
|
||||||
|
|
||||||
@ -290,10 +293,10 @@ local plugin_specs = {
|
|||||||
-- Manage your yank history
|
-- Manage your yank history
|
||||||
{
|
{
|
||||||
"gbprod/yanky.nvim",
|
"gbprod/yanky.nvim",
|
||||||
|
cmd = { "YankyRingHistory" },
|
||||||
config = function()
|
config = function()
|
||||||
require("config.yanky")
|
require("config.yanky")
|
||||||
end,
|
end,
|
||||||
event = "VeryLazy",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Handy unix command inside Vim (Rename, Move etc.)
|
-- Handy unix command inside Vim (Rename, Move etc.)
|
||||||
@ -394,6 +397,14 @@ local plugin_specs = {
|
|||||||
ft = { "markdown" },
|
ft = { "markdown" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"folke/zen-mode.nvim",
|
||||||
|
cmd = "ZenMode",
|
||||||
|
config = function()
|
||||||
|
require("config.zen-mode")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"rhysd/vim-grammarous",
|
"rhysd/vim-grammarous",
|
||||||
enabled = function()
|
enabled = function()
|
||||||
@ -445,7 +456,7 @@ local plugin_specs = {
|
|||||||
|
|
||||||
-- Modern matchit implementation
|
-- Modern matchit implementation
|
||||||
{ "andymass/vim-matchup", event = "BufRead" },
|
{ "andymass/vim-matchup", event = "BufRead" },
|
||||||
{ "tpope/vim-scriptease", cmd = { "Scriptnames", "Messages", "Verbose" } },
|
{ "tpope/vim-scriptease", cmd = { "Scriptnames", "Message", "Verbose" } },
|
||||||
|
|
||||||
-- Asynchronous command execution
|
-- Asynchronous command execution
|
||||||
{ "skywind3000/asyncrun.vim", lazy = true, cmd = { "AsyncRun" } },
|
{ "skywind3000/asyncrun.vim", lazy = true, cmd = { "AsyncRun" } },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user