22 lines
1.1 KiB
Lua
22 lines
1.1 KiB
Lua
-- Options are automatically loaded before lazy.nvim startup
|
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
|
-- Add any additional options here
|
|
|
|
if vim.g.neovide then
|
|
vim.g.neovide_cursor_animation_length = 0
|
|
vim.o.guifont = "BrutalistMono Nerd Font Regular:h16"
|
|
vim.g.neovide_theme = "dark"
|
|
vim.keymap.set("n", "<D-s>", ":w<CR>") -- Save
|
|
vim.keymap.set("v", "<D-c>", '"+y') -- Copy
|
|
vim.keymap.set("n", "<D-v>", '"+P') -- Paste normal mode
|
|
vim.keymap.set("v", "<D-v>", '"+P') -- Paste visual mode
|
|
vim.keymap.set("c", "<D-v>", "<C-R>+") -- Paste command mode
|
|
vim.keymap.set("i", "<D-v>", '<ESC>l"+Pli') -- Paste insert mode
|
|
end
|
|
|
|
-- Allow clipboard copy paste in neovim
|
|
vim.api.nvim_set_keymap("", "<D-v>", "+p<CR>", { noremap = true, silent = true })
|
|
vim.api.nvim_set_keymap("!", "<D-v>", "<C-R>+", { noremap = true, silent = true })
|
|
vim.api.nvim_set_keymap("t", "<D-v>", "<C-R>+", { noremap = true, silent = true })
|
|
vim.api.nvim_set_keymap("v", "<D-v>", "<C-R>+", { noremap = true, silent = true })
|