From 2e8442b64e13a1cf3090bf41d31b8bfb759af99c Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 4 Sep 2021 13:27:58 +0100 Subject: [PATCH] add treesitter playground --- init.plugins.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/init.plugins.vim b/init.plugins.vim index 552069b..cfadbb4 100644 --- a/init.plugins.vim +++ b/init.plugins.vim @@ -35,10 +35,9 @@ call plug#begin('~/.config/nvim/bundle') " Check :h nvim-treesitter-commands for a list of all available commands. It may be necessary to reload the buffer (e.g., via :e) after enabling a module interactively. "}}} -" #vim-lspconfig {{{ - " https://github.com/neovim/nvim-lspconfig - " https://github.com/neovim/nvim-lspconfig/wiki - Plug 'neovim/nvim-lspconfig' +" #playground {{{ + " https://github.com/nvim-treesitter/playground + Plug 'nvim-treesitter/playground' " setings after plug#end "}}} @@ -386,7 +385,7 @@ local on_attach_efm = function(client) if client.resolved_capabilities.document_formatting then vim.cmd [[augroup lsp_formatting]] vim.cmd [[autocmd!]] - vim.cmd [[autocmd BufWritePre :lua vim.lsp.buf.formatting_sync({}, 1000)]] + vim.cmd [[autocmd BufWritePre :lua vim.lsp.buf.formatting_seq_sync({}, 1000)]] vim.cmd [[augroup END]] end end