Skip to content

Commit

Permalink
fix: simpler implementation of vim.fs.joinpath()
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed Dec 9, 2024
1 parent 7b13b15 commit 4a798ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/debugprint/counter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ local M = {}

local default_counter

local DATA_PATH = vim.fs.joinpath(vim.fn.stdpath("data"), "debugprint")
local COUNTER_FILE = vim.fs.joinpath(DATA_PATH, "counter")
-- FIXME: Switch to joinpath for more elegance once we stop supporting <0.10
local DATA_PATH = vim.fn.stdpath("data") .. "/debugprint"
local COUNTER_FILE = DATA_PATH .. "/counter"

---@return string
M.default_display_counter = function()
Expand Down

0 comments on commit 4a798ae

Please sign in to comment.