nvim: plugins: Add plenary and null-ls

nvim-lsp-ts-utils now has plenary and null-ls as a requirement.
This commit is contained in:
Sanchayan Maity 2021-06-07 10:25:57 +05:30
parent 9d6be2d56b
commit 511d5a17aa
2 changed files with 7 additions and 1 deletions

View File

@ -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,

View File

@ -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