nickr -> nichkara update and removal of unused code
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 37s
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 37s
This commit is contained in:
@@ -11,7 +11,7 @@ local function setup_pascal()
|
|||||||
|
|
||||||
-- if return value is 1, get ptop
|
-- if return value is 1, get ptop
|
||||||
if check_ptop == 1 then
|
if check_ptop == 1 then
|
||||||
os.execute("wget -O ~/.local/bin/ptop https://www.nickr.eu/data/ptop64")
|
os.execute("wget -O ~/.local/bin/ptop https://www.nichkara.eu/data/ptop64")
|
||||||
os.execute("chmod +x ~/.local/bin/ptop")
|
os.execute("chmod +x ~/.local/bin/ptop")
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -35,22 +35,3 @@ vim.api.nvim_create_autocmd({ "BufLeave" }, {
|
|||||||
pattern = { "*.pas" },
|
pattern = { "*.pas" },
|
||||||
callback = leave_pascal,
|
callback = leave_pascal,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- @name auto_format
|
|
||||||
-- @param
|
|
||||||
-- @short The format function for pascal.
|
|
||||||
local function auto_format()
|
|
||||||
vim.cmd("checktime %")
|
|
||||||
local write_cmd = "ptop -i 4 -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
|
|
||||||
--vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
|
||||||
-- pattern = { "*.pas" },
|
|
||||||
-- callback = auto_format,
|
|
||||||
--})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user