refactor: simplify git and terminal
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
local ns = vim.api.nvim_create_namespace('git_status')
|
||||
local hls = { M = 'DiagnosticWarn', ['?'] = 'DiagnosticInfo', A = 'DiagnosticOk', D = 'DiagnosticError', R = 'DiagnosticWarn' }
|
||||
local hls = { M = 'DiagnosticWarn', ['?'] = 'DiagnosticInfo', D = 'DiagnosticError' }
|
||||
|
||||
local function show(buf_id, items, query)
|
||||
MiniPick.default_show(buf_id, items, query)
|
||||
@@ -13,7 +13,7 @@ end
|
||||
|
||||
return {
|
||||
status = function()
|
||||
local lines = vim.fn.systemlist('git status -s -u')
|
||||
local lines = vim.fn.systemlist('git -c core.quotepath=false status -s -u')
|
||||
if vim.v.shell_error ~= 0 then
|
||||
return vim.notify('Not a git repository', vim.log.levels.WARN)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user