mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 14:49:31 +00:00
refactor(lua): consistent use of local aliases
This commit is contained in:
committed by
Christian Clason
parent
a33284c2c0
commit
c10e36fc01
@@ -8,7 +8,7 @@ local M = {}
|
||||
--- @param env? table<string,string|number>
|
||||
--- @return string
|
||||
local function system(cmd, silent, env)
|
||||
if vim.fn.executable(cmd[1]) == 0 then
|
||||
if fn.executable(cmd[1]) == 0 then
|
||||
error(string.format('executable not found: "%s"', cmd[1]), 0)
|
||||
end
|
||||
|
||||
@@ -651,10 +651,10 @@ function M.init_pager()
|
||||
|
||||
-- Raw manpage into (:Man!) overlooks `match('man://')` condition,
|
||||
-- so if the buffer already exists, create new with a non existing name.
|
||||
if vim.fn.bufexists(man_bufname) == 1 then
|
||||
if fn.bufexists(man_bufname) == 1 then
|
||||
local new_bufname = man_bufname
|
||||
for i = 1, 100 do
|
||||
if vim.fn.bufexists(new_bufname) == 0 then
|
||||
if fn.bufexists(new_bufname) == 0 then
|
||||
break
|
||||
end
|
||||
new_bufname = ('%s?new=%s'):format(man_bufname, i)
|
||||
|
||||
Reference in New Issue
Block a user