summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2024-04-23 02:40:02 +0500
committertalha <talha@talhaamir.xyz>2024-04-23 02:40:02 +0500
commit148116c22d7074f0eae4a4a3ef8a98290c99c4af (patch)
treec2bd5279852f32b4674cf4f84ccbb1709c402a9e /lua
parent1f793299c6c3f6b60f8c036b742454b229a46de6 (diff)
Improved autocomplete, added formatting specific to python
Diffstat (limited to 'lua')
-rw-r--r--lua/talha/functions.lua5
-rw-r--r--lua/talha/lazy.lua2
2 files changed, 4 insertions, 3 deletions
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()
diff --git a/lua/talha/lazy.lua b/lua/talha/lazy.lua
index 089f254..8ac7f43 100644
--- a/lua/talha/lazy.lua
+++ b/lua/talha/lazy.lua
@@ -39,6 +39,8 @@ require("lazy").setup({
-- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required
+ {'hrsh7th/cmp-buffer'}, -- Required
+ {'hrsh7th/cmp-nvim-lua'},
{'L3MON4D3/LuaSnip'}, -- Required
}
},