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:
parent
9d6be2d56b
commit
511d5a17aa
2 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,7 @@ local nvim_lsp = require('lspconfig')
|
||||||
local protocol = require('vim.lsp.protocol')
|
local protocol = require('vim.lsp.protocol')
|
||||||
local signature = require('lsp_signature')
|
local signature = require('lsp_signature')
|
||||||
local ts_utils = require("nvim-lsp-ts-utils")
|
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/
|
-- Taken from https://www.reddit.com/r/neovim/comments/gyb077/nvimlsp_peek_defination_javascript_ttserver/
|
||||||
function preview_location(location, context, before_context)
|
function preview_location(location, context, before_context)
|
||||||
|
@ -117,6 +118,7 @@ local on_attach = function(client, bufnr)
|
||||||
}
|
}
|
||||||
|
|
||||||
if client.name == 'tsserver' then
|
if client.name == 'tsserver' then
|
||||||
|
null_ls.setup {}
|
||||||
ts_utils.setup {
|
ts_utils.setup {
|
||||||
debug = false,
|
debug = false,
|
||||||
disable_commands = false,
|
disable_commands = false,
|
||||||
|
|
|
@ -109,11 +109,15 @@ local init = function ()
|
||||||
config = "require('modules.easyalign')"
|
config = "require('modules.easyalign')"
|
||||||
}
|
}
|
||||||
use 'Rasukarusan/nvim-block-paste'
|
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
|
-- LSP
|
||||||
use {
|
use {
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
'ray-x/lsp_signature.nvim',
|
'ray-x/lsp_signature.nvim',
|
||||||
'jose-elias-alvarez/nvim-lsp-ts-utils'
|
|
||||||
}
|
}
|
||||||
-- Language support & syntax highlighting
|
-- Language support & syntax highlighting
|
||||||
-- Coq
|
-- Coq
|
||||||
|
|
Loading…
Reference in a new issue