feat: update nvim

This commit is contained in:
hhhh hgfh 2026-05-16 15:29:45 +03:00
parent 6a285955c8
commit d4f2d27b3f
32 changed files with 2682 additions and 0 deletions

33
nvim/lua/custom/init.lua Normal file
View file

@ -0,0 +1,33 @@
-- ========== Telescope ============= --
require("telescope").load_extension("noice")
require("telescope.themes").get_dropdown()
-- ========== Theme ============= --
require("custom.darcula").setup()
-- ========== Theme ============= --
require("custom.timetracker").setup()
-- ========== Make ============= --
require("custom.make")
-- ========== Formating ============= --
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- pattern = { "*.c", "*.cpp", "*.h", "*.hpp", "*.go" },
-- callback = function()
-- vim.lsp.buf.format()
-- end,
-- })
-- ========== Clipboard ============= --
vim.o.clipboard = "unnamedplus"
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
-- vim.highlight.on_yank()
local copy_to_unnamedplus = require("vim.ui.clipboard.osc52").copy("+")
copy_to_unnamedplus(vim.v.event.regcontents)
local copy_to_unnamed = require("vim.ui.clipboard.osc52").copy("*")
copy_to_unnamed(vim.v.event.regcontents)
end,
})