add treesitter playground
This commit is contained in:
parent
78b7069aa7
commit
2e8442b64e
|
@ -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 <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]]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue