[profiles/desktop] change zprofile and fix neovim copy-paste under wayland
This commit is contained in:
@@ -25,8 +25,12 @@ vim.keymap.set(all_modes, '<Down>', '<Nop>', { noremap = true, silent = true })
|
|||||||
vim.keymap.set(all_modes, '<Left>', '<Nop>', { noremap = true, silent = true })
|
vim.keymap.set(all_modes, '<Left>', '<Nop>', { noremap = true, silent = true })
|
||||||
vim.keymap.set(all_modes, '<Right>', '<Nop>', { noremap = true, silent = true })
|
vim.keymap.set(all_modes, '<Right>', '<Nop>', { noremap = true, silent = true })
|
||||||
|
|
||||||
|
-- clipboard
|
||||||
|
vim.keymap.set('v', 'y', '"+y', { noremap = true, silent = true })
|
||||||
|
vim.keymap.set('n', 'y', '"+y', { noremap = true, silent = true })
|
||||||
|
|
||||||
vim.o.number = true -- display line numbers
|
vim.o.number = true -- display line numbers
|
||||||
vim.opt.clipboard:append({ 'unnamedplus', 'unnamed' }) -- always use clipboard in x11
|
-- vim.opt.clipboard:append({ 'unnamedplus', 'unnamed' }) -- always use clipboard in x11
|
||||||
vim.o.encoding = 'UTF-8' -- sets the character encoding used inside vim
|
vim.o.encoding = 'UTF-8' -- sets the character encoding used inside vim
|
||||||
vim.o.title = true -- when on, the title of the window will be set to the value of 'titlestring'
|
vim.o.title = true -- when on, the title of the window will be set to the value of 'titlestring'
|
||||||
vim.o.signcolumn = 'yes'
|
vim.o.signcolumn = 'yes'
|
||||||
@@ -114,4 +118,4 @@ vim.g.html_indent_script1 = 'auto'
|
|||||||
vim.g.html_indent_style1 = 'auto'
|
vim.g.html_indent_style1 = 'auto'
|
||||||
|
|
||||||
-- set cursor
|
-- set cursor
|
||||||
vim.opt.guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50"
|
vim.opt.guicursor = 'n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50'
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ export GRIM_DEFAULT_DIR="${HOME}/Pictures/Screenshots"
|
|||||||
export ROFI_PASS_BACKEND="wtype"
|
export ROFI_PASS_BACKEND="wtype"
|
||||||
export ROFI_PASS_CLIPBOARD_BACKEND="wl-clipboard"
|
export ROFI_PASS_CLIPBOARD_BACKEND="wl-clipboard"
|
||||||
|
|
||||||
if [[ -n "${START_X11}" ]]; then
|
if [[ -n "${START_WM}" ]]; then
|
||||||
unset START_X11
|
unset START_WM
|
||||||
exec sway
|
exec sway
|
||||||
logout
|
logout
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user