etc/nvim/lua/general.lua

38 lines
681 B
Lua
Raw Normal View History

2024-06-03 20:48:28 +03:00
vim.cmd("syntax off")
2024-06-09 18:03:40 +03:00
vim.cmd("set nowrap")
2024-06-03 20:48:28 +03:00
-- 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