Compare commits

...

2 Commits

Author SHA1 Message Date
Yannick Reiß 561cdf5d2d Merge branch 'master' of git.nickr.eu:yannickreiss/nvim
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 30s Details
2024-09-24 05:41:49 +02:00
Yannick Reiß b8c5c86010 bypass reloading error when using pascal formatter 2024-09-24 05:41:41 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -26,11 +26,13 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
-- @param
-- @short The format function for pascal.
local function auto_format()
vim.cmd("checktime %")
local write_cmd = "ptop -c ~/.config/nvim/ptop.conf "
.. vim.api.nvim_buf_get_name(0)
.. " "
.. vim.api.nvim_buf_get_name(0)
os.execute(write_cmd)
vim.cmd("checktime %")
end
-- Add formatter command