65 lines
1.0 KiB
Lua
65 lines
1.0 KiB
Lua
-- Disable netrw
|
|
vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
vim.g.mapleader = " "
|
|
vim.g.localmapleader = " "
|
|
|
|
require("plugins")
|
|
require("lsp")
|
|
require("completion")
|
|
require("formatting")
|
|
require("colorscheme")
|
|
require("highlighting")
|
|
|
|
local opt = vim.opt
|
|
|
|
-- Line numbers
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
|
|
-- Indentation
|
|
opt.expandtab = true
|
|
opt.tabstop = 4
|
|
opt.shiftwidth = 4
|
|
opt.softtabstop = 4
|
|
opt.smartindent = true
|
|
opt.breakindent = true
|
|
|
|
-- Search
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
opt.hlsearch = false
|
|
opt.incsearch = true
|
|
|
|
-- Appearance
|
|
opt.termguicolors = true
|
|
opt.signcolumn = "yes"
|
|
opt.cursorline = true
|
|
opt.scrolloff = 8
|
|
opt.sidescrolloff = 8
|
|
opt.wrap = false
|
|
opt.colorcolumn = "120"
|
|
|
|
vim.o.background = "light"
|
|
vim.cmd("colorscheme rose-pine")
|
|
|
|
-- Splits
|
|
opt.splitright = true
|
|
opt.splitbelow = true
|
|
|
|
-- Files
|
|
opt.undofile = true
|
|
opt.swapfile = false
|
|
opt.backup = false
|
|
opt.updatetime = 250
|
|
|
|
-- Clipboard
|
|
opt.clipboard = "unnamedplus"
|
|
|
|
-- Misc
|
|
opt.mouse = "a"
|
|
opt.showmode = false
|
|
opt.isfname:append("@-@")
|
|
opt.exrc = true
|