blob: a919bc8e2142ef06372adc1e697b3c210e1a2e65 (
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
|
local opt = vim.opt
opt.shiftwidth = 2
opt.tabstop = 2
-- https://www.reddit.com/r/neovim/comments/14n6iiy/if_you_have_treesitter_make_sure_to_disable
-- TLDR: this breaks things with treesitter indent
opt.smartindent = false
opt.number = true
opt.wrap = true
opt.syntax = "on"
opt.termguicolors = true
opt.mouse = "a"
local backupDir = vim.fn.stdpath("state") .. "/backup"
local b = io.open(backupDir, "r")
if b then
b:close()
else
os.execute("mkdir -p " .. backupDir)
end
opt.backupdir = backupDir
vim.g.mapleader = ","
vim.g.do_filetype_lua = 1
|