summaryrefslogtreecommitdiff
path: root/lua/talha/set.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2023-12-14 11:49:47 +0500
committertalha <talha@talhaamir.xyz>2023-12-14 11:49:47 +0500
commitdb929434fa2f29e5674a5f24d71901b4fa458363 (patch)
tree850a02a7c945a1a25040ae289a62385e6d0f47f8 /lua/talha/set.lua
parent27c1b5b9a5cadf1d1331e4cefeaa9c8a73707b26 (diff)
Fix autoreload, added autocmd:
- Added autoreload to fix reloading when file changed externally - Added autocmd to format python files on save
Diffstat (limited to 'lua/talha/set.lua')
-rw-r--r--lua/talha/set.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/lua/talha/set.lua b/lua/talha/set.lua
index 0366b03..814a837 100644
--- a/lua/talha/set.lua
+++ b/lua/talha/set.lua
@@ -24,9 +24,7 @@ op.cursorline = true
op.scrolloff = 8
--- autoreload a file after inactivity
op.autoread = true
-vim.api.nvim_command([[au CursorHold * checktime]])
op.updatetime = 50