From db929434fa2f29e5674a5f24d71901b4fa458363 Mon Sep 17 00:00:00 2001 From: talha Date: Thu, 14 Dec 2023 11:49:47 +0500 Subject: Fix autoreload, added autocmd: - Added autoreload to fix reloading when file changed externally - Added autocmd to format python files on save --- after/plugin/lsp.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'after/plugin/lsp.lua') diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index f8dae3c..642328c 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -20,6 +20,7 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("n", "vrr", function() vim.lsp.buf.references() end, opts) vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) + lsp.buffer_autoformat() end) lsp.setup() -- cgit v1.2.3