refactor: update nvim settings

This commit is contained in:
hhhh hgfh 2026-02-08 16:52:42 +03:00
parent af02e31fe9
commit 6748725b17
33 changed files with 1390 additions and 344 deletions

View file

@ -1,23 +1,19 @@
-- ========== Formating =========== --
-- ========== Telescope ============= --
require("telescope").load_extension("noice")
require("telescope.themes").get_dropdown()
-- ========== Formating =========== --
-- ========== Theme ============= --
require("custom.darcula").setup()
-- ========== Make ============= --
require("custom.make")
-- ========== Formating ============= --
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = { "*.c", "*.cpp", "*.h", "*.hpp" },
pattern = { "*.c", "*.cpp", "*.h", "*.hpp", "*.go" },
callback = function()
vim.lsp.buf.format()
end,
})
-- ========== Formating =========== --
vim.o.clipboard ="unnamedplus"
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
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,
})