1
0
Files
dotfiles/config/nvim/init.lua
James Bulman 42b161fe21 Added old colour scheme
Enabled colour scheme
Enabled filetype indent
2025-09-24 16:49:47 +01:00

56 lines
1.8 KiB
Lua

vim.cmd("colorscheme scheme")
vim.cmd("filetype indent on")
-- Language people you have more important things to do than police the code style, if people
-- want consistent styling it should be done at a project level using a linter or .editorconfig
vim.g.rust_recommended_style = false
vim.g.python_recommended_style = false
vim.g.go_recommended_style = false
vim.g.zig_recommended_style = false
vim.g.markdown_recommended_style = false
vim.g.arduino_recommended_style = false
vim.g.gdscript_recommended_style = false
vim.g.yaml_recommended_style = false
-- Basic options
vim.o.tabstop = 2
vim.o.shiftwidth = 0
vim.o.expandtab = false
vim.o.list = true
vim.o.clipboard = "unnamedplus"
vim.o.ff = "unix"
vim.o.ffs = "unix,dos"
vim.o.switchbuf = "useopen,uselast"
vim.o.textwidth = 95
vim.o.wrapmargin = 5
vim.o.number = true
vim.o.relativenumber = true
vim.o.splitbelow = true
vim.o.splitright = true
vim.o.autoread = true
vim.o.lazyredraw = true
vim.o.cursorline = true
vim.o.ignorecase = true
vim.o.wrap = false
vim.o.wildmenu = false
vim.o.termguicolors = true
vim.o.cindent = true
vim.o.timeoutlen = 1500
vim.o.completeopt = "preview"
vim.o.wildmode = "full"
vim.o.cinoptions = "l1,b-s"
vim.o.statusline = "%#LineNr# [%n] %#Default# %f%m%r %= %#StatusLineNC# %w[%{&ft == '' ? 'None' : ''}%Y] %#LineNr# Line: %l Column: %c "
vim.opt.errorformat = {
"%f:%l:%c: fatal %trror: %m", -- gcc/clang fatal error
"%f:%l:%c: %trror: %m", -- gcc/clang error
"%f:%l:%c: %tarning: %m", -- gcc/clang warning
"%-G%m" -- Ignore anything else
}
vim.opt.formatoptions:append("/")
vim.opt.cinkeys:append("0=break")
vim.opt.listchars:append({ lead = "." })