dotfiles/mzte-nv/conf/lua/settings.lua

48 lines
1.1 KiB
Lua
Raw Normal View History

2021-04-20 14:34:02 +02:00
local cmd = vim.cmd
local o = vim.o
local wo = vim.wo
local g = vim.g
local opt = vim.opt
2021-04-20 14:34:02 +02:00
2021-11-05 17:44:11 +01:00
cmd "syntax on"
2021-04-20 14:34:02 +02:00
o.tabstop = 4
o.shiftwidth = 4
o.expandtab = true
2022-11-02 22:35:42 +01:00
o.ignorecase = true
2022-11-09 14:44:06 +01:00
o.smartcase = true
o.scrolloff = 10
opt.number = true
opt.relativenumber = true
2023-01-19 08:37:17 +01:00
o.guifont = "Iosevka Nerd Font Mono:h10"
2021-04-20 14:34:02 +02:00
o.mouse = "a"
o.termguicolors = true
2021-04-28 18:20:25 +02:00
wo.cursorline = true
wo.cursorcolumn = true
2021-04-20 14:34:02 +02:00
2022-03-22 13:40:28 +01:00
o.conceallevel = 2
2023-02-13 18:54:22 +01:00
-- disable unwanted filetype mappings
g.no_plugin_maps = true
2022-01-25 23:35:43 +01:00
-- disable garbage providers
2022-01-28 22:49:48 +01:00
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
2022-01-25 23:35:43 +01:00
2021-11-05 17:44:11 +01:00
cmd "colorscheme dracula"
2021-04-20 14:34:02 +02:00
2021-11-05 17:44:11 +01:00
cmd "autocmd StdinReadPre * let s:std_in=1"
2021-04-20 14:34:02 +02:00
2021-11-05 17:44:11 +01:00
cmd "filetype plugin on"
2022-11-19 01:53:49 +01:00
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 })