From 5a77fa58e62f9fbbe7fa3b5bca25bddcc125a7c1 Mon Sep 17 00:00:00 2001 From: Proctor Date: Thu, 20 Oct 2022 19:21:06 -0500 Subject: [PATCH] Fix autosave formatting --- nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl index fe4aa9e..591dc99 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl @@ -117,7 +117,7 @@ ; -- buf_set_keymap('x', 'ic', "lua vim.lsp.buf.incoming_calls()", opts) (nvim.buf_set_option 0 :omnifunc "v:lua.vim.lsp.omnifunc") (bind-client-mappings client) - (nvim.ex.autocmd :BufWritePre : :lua :vim.lsp.buf.format) + (nvim.ex.autocmd :BufWritePre : ":lua vim.lsp.buf.format()") ; (nvim.ex.autocmd "BufEnter,CursorHold,InsertLeave" : :lua "vim.lsp.codelens.refresh()") ; client autocmds ; -- vim.api.nvim_command[[autocmd BufWritePre lua vim.lsp.buf_request_sync(vim.api.nvim_get_current_buf(), 'workspace/executeCommand', {command = 'clean-ns', arguments = {vim.uri_from_bufnr(1), vim.api.nvim_win_get_cursor(0)[1], vim.api.nvim_win_get_cursor(0)[2]}, title = 'Clean Namespace'})]]