mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 02:46:27 +00:00
24 lines
563 B
Lua
24 lines
563 B
Lua
local o, wo, bo = vim.o, vim.wo, vim.bo
|
|
|
|
-- Helpers
|
|
require "_settings"
|
|
require "_bindings"
|
|
require "_colors"
|
|
|
|
-- Create commands
|
|
vim.cmd "command! TagsUpdate !ctags -R ."
|
|
vim.cmd "command! Todo grep TODO"
|
|
|
|
-- Use better grep programs
|
|
if vim.fn.executable("rg") == 1 then
|
|
o.grepprg = "rg --vimgrep --no-heading --color=never"
|
|
o.grepformat = "%f:%l:%c:%m,%f:%l:%m"
|
|
elseif vim.fn.executable("ag") == 1 then
|
|
o.grepprg = "ag --vimgrep --nogroup --nocolor"
|
|
elseif vim.fn.executable("ack") == 1 then
|
|
o.grepprg = "ack"
|
|
end
|
|
|
|
-- Plugins
|
|
require("plugins")
|