aboutsummaryrefslogblamecommitdiff
path: root/.config/nvim/lua/general.lua
blob: 6732d38eda89d0b10996846602b7cfc0017249a4 (plain) (tree)

































                                                                                         
vim.opt.mouse = "a"
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.termguicolors = true
vim.opt.wrap = false
vim.opt.visualbell = true
vim.opt.undofile = true
vim.opt.backupcopy = "yes"
vim.opt.undolevels = 1000
vim.opt.wrap = false

-- Comment the following lines to disable whitespace characters
vim.opt.list = true
vim.opt.listchars:append("space:⋅")
vim.opt.listchars:append("eol:↴")
vim.opt.listchars:append("tab:-->")
vim.cmd [[colorscheme dracula]]

vim.opt.spell = true
vim.opt.spelllang = "en"

vim.g.markdown_fenced_languages = {
	"ts=typescript";
	"xml=xml";
	"mermaid=mermaid";
}

if vim.fn.has("wsl") == 1 then
	vim.api.nvim_create_autocmd("TextYankPost", {
		group = vim.api.nvim_create_augroup("Yank", { clear = true });
		callback = function() vim.fn.system("clip.exe", vim.fn.getreg("\"")) end;
	})
end