Skip to content

Commit 9b0075d

Browse files
committed
refactor: Use vim.fs.joinpath()
1 parent ac58cff commit 9b0075d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lua/debugprint/counter.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ local M = {}
22

33
local default_counter
44

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

98
---@return string

tests/debugprint.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ end
7474
-- within one NeoVim session
7575
vim.notify_once = vim.notify
7676

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

8180
local ALWAYS_PROMPT_KEYMAP = {

0 commit comments

Comments
 (0)