mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
35 lines
751 B
Lua
35 lines
751 B
Lua
vim.g.mapleader = " "
|
|
|
|
-- Mapping for line diagnostics
|
|
vim.g.swap = false
|
|
|
|
-- Use system clipboard
|
|
vim.opt.clipboard = "unnamedplus"
|
|
|
|
vim.opt.relativenumber = false
|
|
vim.opt.colorcolumn = "100"
|
|
vim.opt.swapfile = false
|
|
|
|
-- suggested by chatgpt
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = true
|
|
vim.opt.tabstop = 2
|
|
vim.opt.shiftwidth = 2
|
|
vim.opt.expandtab = true
|
|
vim.opt.smartindent = true
|
|
vim.opt.termguicolors = true
|
|
vim.opt.cursorline = true
|
|
vim.opt.signcolumn = "yes"
|
|
vim.opt.updatetime = 300
|
|
vim.opt.scrolloff = 8
|
|
vim.opt.splitright = true
|
|
vim.opt.wrap = false
|
|
|
|
|
|
-- Enable smart case search
|
|
vim.opt.ignorecase = true
|
|
vim.opt.smartcase = true
|
|
|
|
-- Diagnostic config
|
|
-- TODO: Do I still need this?
|
|
-- vim.diagnostic.config({ virtual_text = false })
|