aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/opt.lua
blob: b47b9398c3b9ec67793544b652e04306a4d85f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
})