install lsp_signature plugin
This commit is contained in:
@@ -58,6 +58,7 @@ require("packer").startup(function(use)
|
|||||||
use({ "neovim/nvim-lspconfig" })
|
use({ "neovim/nvim-lspconfig" })
|
||||||
use({ "williamboman/nvim-lsp-installer" })
|
use({ "williamboman/nvim-lsp-installer" })
|
||||||
use({ "jose-elias-alvarez/null-ls.nvim" })
|
use({ "jose-elias-alvarez/null-ls.nvim" })
|
||||||
|
use({ "ray-x/lsp_signature.nvim" })
|
||||||
|
|
||||||
-- Completion, snippets, etc
|
-- Completion, snippets, etc
|
||||||
use({
|
use({
|
||||||
|
|||||||
@@ -133,11 +133,16 @@ local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protoco
|
|||||||
|
|
||||||
local lsps_with_disabled_formatting = { "tsserver", "gopls", "jsonls" }
|
local lsps_with_disabled_formatting = { "tsserver", "gopls", "jsonls" }
|
||||||
|
|
||||||
local on_attach = function(client)
|
local on_attach = function(client, bufnr)
|
||||||
if list_includes_item(lsps_with_disabled_formatting, client.name) then
|
if list_includes_item(lsps_with_disabled_formatting, client.name) then
|
||||||
client.resolved_capabilities.document_formatting = false
|
client.resolved_capabilities.document_formatting = false
|
||||||
client.resolved_capabilities.document_range_formatting = false
|
client.resolved_capabilities.document_range_formatting = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require("lsp_signature").on_attach({
|
||||||
|
bind = true,
|
||||||
|
hint_enable = false,
|
||||||
|
}, bufnr)
|
||||||
end
|
end
|
||||||
|
|
||||||
lsp_installer.on_server_ready(function(server)
|
lsp_installer.on_server_ready(function(server)
|
||||||
|
|||||||
Reference in New Issue
Block a user