Fix tab width and insertion defaults.

This commit is contained in:
Drew 2025-05-12 23:19:34 -07:00
parent e7547cf9e7
commit e15bb92e27
11 changed files with 320 additions and 316 deletions

View file

@ -1,22 +1,25 @@
vim.opt.termguicolors = true
vim.cmd("colorscheme tokyonight")
vim.o.shiftwidth = 4
vim.o.expandtab = true
vim.o.smartindent = true
vim.wo.number = true
vim.wo.relativenumber = true
vim.diagnostic.config({
virtual_text = true,
virtual_lines = {
current_line = true,
},
update_in_insert = true,
signs = true,
virtual_text = true,
virtual_lines = {
current_line = true,
},
update_in_insert = true,
signs = true,
})
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})