Skip to content

Commit a11b930

Browse files
mckellygitvoldikss
authored andcommitted
rm vimscript health routines and correct plugin dir
1 parent a720490 commit a11b930

File tree

2 files changed

+2
-72
lines changed

2 files changed

+2
-72
lines changed

autoload/health/floaterm.vim

Lines changed: 0 additions & 67 deletions
This file was deleted.

lua/floaterm/health.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ local get_nvim_info = function()
1212
end
1313

1414
local get_plugin_info = function()
15-
local home = vim.fn.fnamemodify(vim.fn.resolve(vim.fn.expand('<sfile>:p')), ':h:h:h')
16-
local save_cwd = vim.fn.getcwd()
17-
vim.fn.execute('cd ' .. home, 'silent!')
18-
local result = vim.fn.system('git rev-parse --short HEAD')
19-
vim.fn.execute('cd ' .. save_cwd, 'silent!')
15+
local home = string.sub(debug.getinfo(1).source, 2, string.len('/health.lua') * -1)
16+
local result = vim.fn.system('cd ' .. home .. ' ; git rev-parse --short HEAD')
2017
return result
2118
end
2219

0 commit comments

Comments
 (0)