refactor: update nvim settings
This commit is contained in:
parent
af02e31fe9
commit
6748725b17
33 changed files with 1390 additions and 344 deletions
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue