From d2832586896154489210cd2416c23f8bd6571464 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 24 Aug 2021 16:13:10 -0700 Subject: [PATCH] Better lsp and completion Remove treesitter completion for now and use black config? --- neovim/lua/plugins.lua | 2 ++ neovim/lua/plugins/lsp.lua | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index 01f4c23..19f5df1 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -291,10 +291,12 @@ return require('packer').startup(function() "nvim-treesitter/nvim-treesitter-textobjects", requires = "nvim-treesitter/nvim-treesitter", } + --[[ use { "nvim-treesitter/completion-treesitter", requires = "nvim-treesitter/nvim-treesitter", } + --]] -- Completion use { diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index 4de90a5..3493310 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -73,7 +73,8 @@ function M.config_lsp() on_attach=default_attach, settings={ pylsp={ - configurationSources = {"flake8"}, + -- configurationSources = {"flake8"}, + configurationSources = {"black"}, formatCommand = {"black"}, }, },