From 511d5a17aa07aacd2a01998b3e2c3e2697ba06d4 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 7 Jun 2021 10:25:57 +0530 Subject: [PATCH] nvim: plugins: Add plenary and null-ls nvim-lsp-ts-utils now has plenary and null-ls as a requirement. --- nvim/.config/nvim/lua/lsp.lua | 2 ++ nvim/.config/nvim/lua/plugins.lua | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index 8bbf708..e63b5fa 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -2,6 +2,7 @@ local nvim_lsp = require('lspconfig') local protocol = require('vim.lsp.protocol') local signature = require('lsp_signature') local ts_utils = require("nvim-lsp-ts-utils") +local null_ls = require("null-ls") -- Taken from https://www.reddit.com/r/neovim/comments/gyb077/nvimlsp_peek_defination_javascript_ttserver/ function preview_location(location, context, before_context) @@ -117,6 +118,7 @@ local on_attach = function(client, bufnr) } if client.name == 'tsserver' then + null_ls.setup {} ts_utils.setup { debug = false, disable_commands = false, diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index ee3f266..505a87c 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -109,11 +109,15 @@ local init = function () config = "require('modules.easyalign')" } use 'Rasukarusan/nvim-block-paste' + use 'nvim-lua/plenary.nvim' + use { + 'jose-elias-alvarez/nvim-lsp-ts-utils', + requires = { 'jose-elias-alvarez/null-ls.nvim' } + } -- LSP use { 'neovim/nvim-lspconfig', 'ray-x/lsp_signature.nvim', - 'jose-elias-alvarez/nvim-lsp-ts-utils' } -- Language support & syntax highlighting -- Coq