mirror of
https://github.com/tjdevries/advent-of-nvim.git
synced 2026-01-10 01:51:16 +00:00
sorry, i forgot to update this more regularly
This commit is contained in:
18
XX - oil/config/init.lua
Normal file
18
XX - oil/config/init.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
print("advent of neovim")
|
||||
|
||||
require("config.lazy")
|
||||
|
||||
vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>")
|
||||
vim.keymap.set("n", "<space>x", ":.lua<CR>")
|
||||
vim.keymap.set("v", "<space>x", ":lua<CR>")
|
||||
|
||||
-- Highlight when yanking (copying) text
|
||||
-- Try it with `yap` in normal mode
|
||||
-- See `:help vim.highlight.on_yank()`
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
desc = 'Highlight when yanking (copying) text',
|
||||
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user