noice + notify

This commit is contained in:
2026-06-17 19:38:58 +03:00
parent 85459a6fd6
commit 5ec108097b
16 changed files with 757 additions and 199 deletions

View File

@ -0,0 +1,31 @@
local M = {}
function M.run_script()
-- Проверяем, что открыт именно файл ~/desktop/govno/ui.md
local current_file = vim.fn.expand('%:p') -- Полный путь к текущему файлу
local target_file = vim.fn.expand('~/desktop/govno/ui.md')
if current_file ~= target_file then
print("Ошибка: Открыт не тот файл. Должен быть открыт " .. target_file)
return
end
-- Сохраняем файл
vim.cmd('w')
-- Запускаем скрипт
print("Ожидайте ответа")
local script_path = vim.fn.expand('~/dev/python/interface.py')
vim.fn.jobstart({'python3', script_path}, {
on_exit = function()
vim.cmd('e') -- Перезагружаем файл после завершения скрипта
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<S-g>", true, false, true), 'n', false)
print("Отвечено!")
end
})
end
return M