From 148116c22d7074f0eae4a4a3ef8a98290c99c4af Mon Sep 17 00:00:00 2001 From: talha Date: Tue, 23 Apr 2024 02:40:02 +0500 Subject: Improved autocomplete, added formatting specific to python --- lua/talha/functions.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lua/talha/functions.lua') diff --git a/lua/talha/functions.lua b/lua/talha/functions.lua index fdad26c..b75185b 100644 --- a/lua/talha/functions.lua +++ b/lua/talha/functions.lua @@ -1,9 +1,8 @@ local Path = require"plenary.path" -function FormatFile() +function GetCurrFileName() local filename = vim.api.nvim_buf_get_name(0) - vim.cmd(":silent !autopep8 -i " .. filename) - vim.cmd(":silent !isort " .. filename) + return filename end function CreateDailyNote() -- cgit v1.2.3