From d9f1170230d557a4947528b4f32359360d310205 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Sun, 5 Sep 2021 21:42:53 +0200 Subject: [PATCH] add nvim treesitter --- nvim/mappings.vim | 14 +++++++------- nvim/pluginoptions.vim | 15 ++++++++++++++- nvim/plugins.vim | 4 ++++ 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/nvim/mappings.vim b/nvim/mappings.vim index edfb182..6b2519f 100644 --- a/nvim/mappings.vim +++ b/nvim/mappings.vim @@ -35,10 +35,10 @@ nnoremap p :Neoformat " lsp mappings imap (completion_trigger) -nnoremap gd lua vim.lsp.buf.definition() -nnoremap gh lua vim.lsp.buf.hover() -nnoremap gH lua vim.lsp.buf.code_action() -nnoremap gD lua vim.lsp.buf.implementation() -nnoremap gs lua vim.lsp.buf.signature_help() -nnoremap gr lua vim.lsp.buf.references() -nnoremap gR lua vim.lsp.buf.rename() +nnoremap gd lua vim.lsp.buf.definition() +nnoremap gh lua vim.lsp.buf.hover() +nnoremap gH lua vim.lsp.buf.code_action() +nnoremap gD lua vim.lsp.buf.implementation() +nnoremap gs lua vim.lsp.buf.signature_help() +nnoremap gr lua vim.lsp.buf.references() +nnoremap gR lua vim.lsp.buf.rename() diff --git a/nvim/pluginoptions.vim b/nvim/pluginoptions.vim index 4cd5df0..92c7bfe 100644 --- a/nvim/pluginoptions.vim +++ b/nvim/pluginoptions.vim @@ -101,7 +101,7 @@ let g:goyo_linenr = 0 lua require'lspconfig'.tsserver.setup{ on_attach=require'completion'.on_attach } lua require'lspconfig'.intelephense.setup{ on_attach=require'completion'.on_attach } lua require'lspconfig'.vuels.setup{ on_attach=require'completion'.on_attach } -lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach } +lua require'lspconfig'.pylsp.setup{ on_attach=require'completion'.on_attach } lua require'lspconfig'.texlab.setup{ on_attach=require'completion'.on_attach } lua <