etc/nvim/lua/general.lua
2024-07-18 20:01:51 +05:00

40 lines
733 B
Lua

vim.cmd("syntax on")
vim.cmd("set nowrap")
vim.g.autoformat = false
vim.g.zig_fmt_autosave = 0
-- The standard.
vim.cmd.language("en_US")
-- Fucking hate swapfiles.
vim.opt.swapfile = false
-- Show line number.
vim.o.number = true
--
vim.o.cursorline = true
-- For quick changing of character case.
vim.opt.tildeop = true
-- Cursor stuff.
vim.o.guicursor = 'n-v-c-sm-i-ci-ve:block,r-cr-o:hor20,a:blinkoff700-blinkoff400-blinkoff250-Cursor/lCursor'
-- To see more.
vim.opt.listchars = {
tab = '|-',
trail = '.',
lead = '.',
}
-- Should recall later.
vim.opt.list = true
-- Golang, C based configuration
vim.o.expandtab = false
vim.o.autoindent = true
vim.o.foldmethod = 'indent'
vim.o.tabstop = 4
vim.o.shiftwidth = 4