mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
52 lines
839 B
Lua
52 lines
839 B
Lua
-- <leader> is space
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = "\\"
|
|
-- Disable netrw
|
|
vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
-- Disable Perl
|
|
vim.g.loaded_perl_provider = 0 -- Don't load Perl
|
|
|
|
vim.g.autoformat = true
|
|
|
|
local opt = vim.opt
|
|
|
|
-- Clipboard
|
|
opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus"
|
|
-- Line number
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
|
|
opt.confirm = true
|
|
|
|
-- Word wrap
|
|
opt.linebreak = true
|
|
|
|
-- Indentation
|
|
opt.expandtab = true
|
|
opt.shiftwidth = 4
|
|
opt.shiftround = true
|
|
|
|
-- Case
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
|
|
opt.cursorline = true
|
|
-- Terminal GUI
|
|
opt.termguicolors = true
|
|
|
|
-- Fold
|
|
opt.foldlevel = 99
|
|
opt.foldmethod = "expr"
|
|
|
|
-- Statusline
|
|
opt.laststatus = 0
|
|
|
|
-- Hide Command Line if empty
|
|
opt.cmdheight = 0
|
|
|
|
-- Scroll
|
|
opt.scrolloff = 5
|
|
opt.sidescrolloff = 10
|
|
|
|
opt.conceallevel = 2
|