projects
/
dotfiles_nvim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e35156
)
use "uctags" on freebsd instead of "ctags" like on linux
author
Lukas Hägele
<lukas.haegele93@web.de>
Sun, 4 Oct 2026 13:51:21 +0000
(15:51 +0200)
committer
Lukas Hägele
<lukas.haegele93@web.de>
Sun, 4 Oct 2026 13:51:21 +0000
(15:51 +0200)
lua/snippets/ctags.lua
patch
|
blob
|
history
diff --git
a/lua/snippets/ctags.lua
b/lua/snippets/ctags.lua
index a8b08c844a00ac780d3146025c55ad3aa15c61fc..360cfaeba4af15a4a9fc79fadca6fe051df822e1 100644
(file)
--- 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