mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:47:34 +00:00
afa67c1b0c
Also moves pre-commit hooks to system hooks to make sure editing and committing versions match
32 lines
787 B
Lua
32 lines
787 B
Lua
if vim.fn.has("nvim-0.9.0") ~= 1 then
|
|
print("ERROR: Requires nvim >= 0.9.0")
|
|
end
|
|
|
|
-- Helpers
|
|
require("default_settings")
|
|
require("default_bindings")
|
|
|
|
-- Use better grep programs
|
|
if vim.fn.executable("rg") == 1 then
|
|
vim.o.grepprg = "rg --vimgrep --no-heading --color=never"
|
|
vim.o.grepformat = "%f:%l:%c:%m,%f:%l:%m"
|
|
elseif vim.fn.executable("ag") == 1 then
|
|
vim.o.grepprg = "ag --vimgrep --nogroup --nocolor"
|
|
elseif vim.fn.executable("ack") == 1 then
|
|
vim.o.grepprg = "ack"
|
|
end
|
|
|
|
if vim.g.neovide then
|
|
require("neovide")
|
|
end
|
|
|
|
-- Disable polyglot for langauges I've added special support for
|
|
-- TODO: Can this be moved somewhere better?
|
|
vim.g.polyglot_disabled = { "go", "rust" }
|
|
|
|
-- Plugins
|
|
require("lazy_init")
|
|
|
|
-- Load colors after plugins
|
|
require("colors").init()
|