use "uctags" on freebsd instead of "ctags" like on linux
authorLukas Hägele <lukas.haegele93@web.de>
Sun, 4 Oct 2026 13:51:21 +0000 (15:51 +0200)
committerLukas Hägele <lukas.haegele93@web.de>
Sun, 4 Oct 2026 13:51:21 +0000 (15:51 +0200)
lua/snippets/ctags.lua

index a8b08c844a00ac780d3146025c55ad3aa15c61fc..360cfaeba4af15a4a9fc79fadca6fe051df822e1 100644 (file)
@@ -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