fix: guard macOS-only configs behind has('mac') check

This commit is contained in:
Carlos Gutierrez
2026-03-05 17:01:47 -05:00
parent 0f59a7b9d7
commit 017a82dc61
3 changed files with 26 additions and 18 deletions

View File

@@ -1,3 +1,9 @@
-- This ftplugin is currently configured for macOS (Homebrew + Apple Silicon).
-- Skip on Linux until Linux paths are configured.
if vim.fn.has("mac") ~= 1 then
return
end
local home = os.getenv("HOME")
local workspace_path = home .. "/.local/share/nvim/jdtls-workspace/"
local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t")