nvim-config11/lua/config/settings.lua

66 lines
1.2 KiB
Lua
Raw Permalink Normal View History

2025-03-27 08:18:20 +00:00
local opt = vim.opt
local wo = vim.wo
local cmd = vim.cmd
local g = vim.g
g.mapleader = "\\"
g.maplocalleader = " "
opt.cindent = true
opt.colorcolumn = "80"
opt.clipboard:append({ "unnamed", "unnamedplus" })
opt.expandtab = true
opt.exrc = true
opt.foldmethod = "indent"
2025-03-27 08:18:20 +00:00
opt.foldcolumn = "1"
2025-04-04 14:59:29 +01:00
opt.foldlevel = 99
opt.foldlevelstart = 99
opt.foldenable = true
opt.fillchars:append({
foldopen = "",
foldclose = "",
})
2025-03-27 08:18:20 +00:00
opt.ignorecase = true
opt.incsearch = true
opt.inccommand = "split"
opt.mouse = "a"
opt.completeopt = "menuone,noselect"
wo.wrap = false
opt.number = true
opt.path = { "." }
opt.signcolumn = "yes"
opt.shiftwidth = 2
opt.smartcase = true
opt.smarttab = true
opt.spell = false
opt.spelllang = "en_us"
opt.scrolloff = 8
opt.relativenumber = true
opt.tabstop = 2
opt.wildignore = {
"node_modules/**",
".git/**",
".settings/**",
".mvn/**",
"*.pyc",
}
opt.wildcharm = vim.fn.char2nr("<C-z>")
opt.list = true
opt.listchars = "eol:↩,tab: "
opt.title = true
opt.showmode = false
vim.o.updatetime = 250
vim.o.ch = 0
opt.syntax = "enable"
vim.opt.swapfile = false
vim.opt.backup = false
if vim.fn.has("termguicolors") == 1 then
opt.termguicolors = true
end