nvim: Code style

This commit is contained in:
Andreas Tsouchlos 2025-10-28 14:06:37 +01:00
parent 448bb7a748
commit a29e798b3a

View File

@ -6,19 +6,19 @@
-- local function execute_in_repo_root(func) -- local function execute_in_repo_root(func)
-- local function is_git_repo() -- local function is_git_repo()
-- vim.fn.system("git rev-parse --is-inside-work-tree") -- vim.fn.system("git rev-parse --is-inside-work-tree")
-- --
-- return vim.v.shell_error == 0 -- return vim.v.shell_error == 0
-- end -- end
-- --
-- local function get_git_root() -- local function get_git_root()
-- local dot_git_path = vim.fn.finddir(".git", ".;") -- local dot_git_path = vim.fn.finddir(".git", ".;")
-- return vim.fn.fnamemodify(dot_git_path, ":h") -- return vim.fn.fnamemodify(dot_git_path, ":h")
-- end -- end
-- --
-- local opts = {} -- local opts = {}
-- --
-- if is_git_repo() then opts = {cwd = get_git_root()} end -- if is_git_repo() then opts = {cwd = get_git_root()} end
-- --
-- func(opts) -- func(opts)
-- end -- end
----------------------- -----------------------