mapping: Fix p not copy selected text when clipboard in not set

format statusline.lua
This commit is contained in:
Akianonymus 2022-05-08 08:45:13 +05:30 committed by siduck
parent 5cb7aeed10
commit d912bbe67c
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,8 @@ local user_cmd = vim.api.nvim_create_user_command
-- Useful when one wants to use that keymap for any other purpose
-- Don't copy the replaced text after pasting in visual mode
map("v", "p", "p:let @+=@0<CR>")
-- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste
map("v", "p", 'p:let @+=@0<CR>:let @"=@0<CR>', { silent = true })
-- Allow moving the cursor through wrapped lines with j, k, <Up> and <Down>
-- http<cmd> ://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/

View File

@ -51,7 +51,8 @@ options.icon_styles = {
},
}
options.separator_style = options.icon_styles[require("core.utils").load_config().plugins.options.statusline.separator_style]
options.separator_style =
options.icon_styles[require("core.utils").load_config().plugins.options.statusline.separator_style]
options.main_icon = {
provider = options.separator_style.main_icon,