mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-15 07:43:41 +01:00
46 lines
1 KiB
Lua
46 lines
1 KiB
Lua
local cmd = vim.cmd
|
|
|
|
local o = vim.o
|
|
local wo = vim.wo
|
|
local g = vim.g
|
|
local opt = vim.opt
|
|
|
|
cmd "syntax on"
|
|
o.tabstop = 4
|
|
o.shiftwidth = 4
|
|
o.expandtab = true
|
|
o.ignorecase = true
|
|
o.smartcase = true
|
|
o.scrolloff = 10
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
o.guifont = "Iosevka:h10"
|
|
o.mouse = "a"
|
|
o.termguicolors = true
|
|
wo.cursorline = true
|
|
wo.cursorcolumn = true
|
|
|
|
g.zig_fmt_autosave = 0
|
|
|
|
o.conceallevel = 2
|
|
|
|
-- disable garbage providers
|
|
g.loaded_python_provider = false
|
|
g.loaded_python3_provider = false
|
|
g.loaded_ruby_provider = false
|
|
g.loaded_perl_provider = false
|
|
g.loaded_node_provider = false
|
|
|
|
cmd "colorscheme dracula"
|
|
|
|
cmd "autocmd StdinReadPre * let s:std_in=1"
|
|
|
|
cmd "filetype plugin on"
|
|
|
|
vim.api.nvim_create_user_command("CompileConfig", function()
|
|
require("mzte_nv").compile.compilePath(vim.fn.getenv("HOME") .. "/.config/nvim")
|
|
end, { nargs = 0 })
|
|
|
|
vim.api.nvim_create_user_command("CompilePlugins", function()
|
|
require("mzte_nv").compile.compilePath(require("packer").config.package_root)
|
|
end, { nargs = 0 })
|