Compare commits
2 Commits
ad4c99c1f8
...
561cdf5d2d
Author | SHA1 | Date |
---|---|---|
|
561cdf5d2d | |
|
b8c5c86010 |
|
@ -26,11 +26,13 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||||
-- @param
|
-- @param
|
||||||
-- @short The format function for pascal.
|
-- @short The format function for pascal.
|
||||||
local function auto_format()
|
local function auto_format()
|
||||||
|
vim.cmd("checktime %")
|
||||||
local write_cmd = "ptop -c ~/.config/nvim/ptop.conf "
|
local write_cmd = "ptop -c ~/.config/nvim/ptop.conf "
|
||||||
.. vim.api.nvim_buf_get_name(0)
|
.. vim.api.nvim_buf_get_name(0)
|
||||||
.. " "
|
.. " "
|
||||||
.. vim.api.nvim_buf_get_name(0)
|
.. vim.api.nvim_buf_get_name(0)
|
||||||
os.execute(write_cmd)
|
os.execute(write_cmd)
|
||||||
|
vim.cmd("checktime %")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add formatter command
|
-- Add formatter command
|
||||||
|
|
Loading…
Reference in New Issue