aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/opt.lua
blob: a9e9ef0ce1d7421b7e9d990e9a1feb7f4e3eaafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
vim.o.termguicolors = true
vim.o.relativenumber = true
vim.o.number = true
vim.o.cursorline = true
vim.o.cursorlineopt = "line"
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.mouse = ""
vim.o.cc = "80"
vim.o.splitright = true
vim.o.splitbelow = true
local tabwidth = 2
vim.o.tabstop = tabwidth
vim.o.shiftwidth = tabwidth
vim.o.expandtab = true

-- Disable line numbers in terminal
vim.api.nvim_create_autocmd("TermOpen", {
  callback = function()
    vim.o.number = false
    vim.o.relativenumber = false
  end,
})

vim.cmd.colorscheme("mine")

vim.cmd [[
  highlight Normal guibg=none
  highlight NonText guibg=none
  highlight Normal ctermbg=none
  highlight NonText ctermbg=none
]]