From 66bfaa6d65731de098ee326a5e26d8daebbca040 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lukas=20H=C3=A4gele?= Date: Sun, 4 Oct 2026 15:51:21 +0200 Subject: [PATCH] use "uctags" on freebsd instead of "ctags" like on linux --- lua/snippets/ctags.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/snippets/ctags.lua b/lua/snippets/ctags.lua index a8b08c8..360cfae 100644 --- a/lua/snippets/ctags.lua +++ b/lua/snippets/ctags.lua @@ -1,7 +1,12 @@ local M = {} M.run = function(opts) - vim.fn.jobstart("find src -type f | xargs ctags", { + local ctags = "ctags" + if jit.os == "BSD" then + ctags = "uctags" + end + + vim.fn.jobstart("find src -type f | xargs " ..ctags, { detach = true, }) end -- 2.39.5