this repo has no description
1vim.opt.termguicolors = true
2
3vim.opt.relativenumber = true
4vim.opt.number = true -- shows the current line number instead of 0
5
6vim.opt.expandtab = true
7vim.opt.shiftwidth = 2
8vim.opt.tabstop = 2
9
10vim.opt.laststatus = 3
11
12vim.opt.scrolloff = 0
13vim.opt.smoothscroll = true
14
15vim.opt.clipboard = ""
16
17-- Reserve a space in the gutter
18vim.opt.signcolumn = "yes"
19
20vim.opt.fillchars:append({ diff = "╱" })
21
22-- Disable wrapping, except for buffers of certain filetype
23vim.opt.wrap = false
24vim.api.nvim_create_autocmd({ "FileType" }, {
25 pattern = { "markdown", "qf", "" },
26 callback = function()
27 vim.opt_local.wrap = true
28 vim.opt_local.linebreak = true
29 end,
30})
31
32-- Set .avsc files to use json filetype
33vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
34 pattern = "*.avsc",
35 command = "set filetype=json",
36})