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.
|
" 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
|
||||||
|
|
Loading…
Reference in New Issue