Apply Patch

This commit is contained in:
Luka Jankovic 2025-06-04 13:35:34 +02:00
parent 25dcd58627
commit f9c808c3c5
13 changed files with 268 additions and 225 deletions

View file

@ -1,3 +1,2 @@
require('config.lazy')
require('config.settings')
require('config.keybinds')
require('config.rest')

View file

@ -32,4 +32,9 @@ require("lazy").setup({
install = { colorscheme = { "nord" } },
-- automatically check for plugin updates
checker = { enabled = false },
change_detection = {
enabled = false,
notify = false
}
})

2
nvim/lua/config/rest.lua Normal file
View file

@ -0,0 +1,2 @@
require('config.settings')
require('config.keybinds')

View file

@ -8,24 +8,42 @@ vim.o.tabstop = 4
vim.o.shiftwidth = 4
-- Clipboard
local function paste()
return {
vim.fn.split(vim.fn.getreg(""), "\n"),
vim.fn.getregtype(""),
}
end
vim.o.clipboard = "unnamedplus"
vim.api.nvim_exec(
[[
augroup YankHighlight
autocmd!
autocmd TextYankPost * silent! lua vim.highlight.on_yank()
augroup end
]],
false
)
-- vim.g.clipboard = {
-- name = "OSC 52",
-- copy = {
-- ["+"] = require("vim.ui.clipboard.osc52").copy("+"),
-- ["*"] = require("vim.ui.clipboard.osc52").copy("*"),
-- },
-- paste = {
-- ["+"] = paste,
-- ["*"] = paste,
-- },
-- }
-- vim.api.nvim_exec(
-- [[
-- augroup YankHighlight
-- autocmd!
-- autocmd TextYankPost * silent! lua vim.highlight.on_yank()
-- augroup end
-- ]],
-- false
-- )
-- Restore cursor
local restore_cursor_augroup = vim.api.nvim_create_augroup("restore_cursor_shape_on_exit", { clear = true })
vim.api.nvim_create_autocmd({ "VimLeave" }, {
group = restore_cursor_augroup,
desc = "restore the cursor shape on exit of neovim",
command = "set guicursor=a:ver20",
group = restore_cursor_augroup,
desc = "restore the cursor shape on exit of neovim",
command = "set guicursor=a:ver20",
})
-- Horizontal Split Line