-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
21 lines (19 loc) · 766 Bytes
/
init.lua
File metadata and controls
21 lines (19 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
vim.loader.enable()
require('config.options')
require('config.autocmds')
require('config.keymaps')
require('config.lazy')
if vim.g.neovide then
vim.api.nvim_set_hl(0, 'Normal', { bg = '#001E27' })
vim.g.neovide_opacity = 0.92
vim.g.neovide_window_blurred = true
vim.g.neovide_hide_mouse_when_typing = true
vim.g.neovide_input_macos_option_is_meta = 'only_left'
vim.g.neovide_cursor_vfx_mode = 'pixiedust'
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