32 lines
787 B
Lua
Raw Normal View History

2024-07-17 17:36:44 -07:00
if vim.fn.has("nvim-0.9.0") ~= 1 then
print("ERROR: Requires nvim >= 0.9.0")
2023-06-13 16:47:03 -07:00
end
2021-08-24 09:55:37 -07:00
-- Helpers
2024-09-19 11:07:44 -07:00
require("default_settings")
require("default_bindings")
2021-08-24 09:55:37 -07:00
-- Use better grep programs
if vim.fn.executable("rg") == 1 then
2024-09-19 11:01:47 -07:00
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
2024-09-19 11:01:47 -07:00
vim.o.grepprg = "ag --vimgrep --nogroup --nocolor"
elseif vim.fn.executable("ack") == 1 then
2024-09-19 11:01:47 -07:00
vim.o.grepprg = "ack"
2021-08-24 09:55:37 -07:00
end
2024-09-19 11:55:58 -07:00
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")
2024-09-17 13:16:25 -07:00
-- Load colors after plugins
require("colors").init()