add treesitter playground

This commit is contained in:
Ray Elliott 2021-09-04 13:27:58 +01:00
parent 78b7069aa7
commit 2e8442b64e
1 changed files with 4 additions and 5 deletions

View File

@ -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. " 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 {{{ " #playground {{{
" https://github.com/neovim/nvim-lspconfig " https://github.com/nvim-treesitter/playground
" https://github.com/neovim/nvim-lspconfig/wiki Plug 'nvim-treesitter/playground'
Plug 'neovim/nvim-lspconfig'
" setings after plug#end " setings after plug#end
"}}} "}}}
@ -386,7 +385,7 @@ local on_attach_efm = function(client)
if client.resolved_capabilities.document_formatting then if client.resolved_capabilities.document_formatting then
vim.cmd [[augroup lsp_formatting]] vim.cmd [[augroup lsp_formatting]]
vim.cmd [[autocmd!]] vim.cmd [[autocmd!]]
vim.cmd [[autocmd BufWritePre <buffer> :lua vim.lsp.buf.formatting_sync({}, 1000)]] vim.cmd [[autocmd BufWritePre <buffer> :lua vim.lsp.buf.formatting_seq_sync({}, 1000)]]
vim.cmd [[augroup END]] vim.cmd [[augroup END]]
end end
end end