max_item_count

This commit is contained in:
Rikuoh Tsujitani 2023-11-05 08:50:03 +09:00
parent 7125dcfb93
commit f1bf797fc1
Signed by: riq0h
GPG key ID: 010F09DEA298C717

View file

@ -339,7 +339,7 @@ local on_attach = function(client, bufnr)
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, { virtual_text = false }) vim.lsp.diagnostic.on_publish_diagnostics, { virtual_text = false })
require('mason').setup() require('mason').setup()
require("mason-null-ls").setup({ require('mason-null-ls').setup({
ensure_installed = { 'prettierd', 'rubocop', 'black', 'goimports' }, ensure_installed = { 'prettierd', 'rubocop', 'black', 'goimports' },
handlers = {}, handlers = {},
}) })
@ -542,12 +542,11 @@ local lspkind = require('lspkind')
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'nvim_lsp' }, { name = 'nvim_lsp', max_item_count = 7, keyword_length = 1},
{ name = 'vsnip' }, { name = 'vsnip', max_item_count = 7, keyword_length = 2},
{ name = 'nvim_lsp_signature_help' }, { name = 'nvim_lsp_signature_help', max_item_count = 7, keyword_length = 1},
{ name = 'calc' }, { name = 'calc' },
}, { { name = 'buffer', max_item_count = 7, keyword_length = 2 },
{ name = 'buffer', keyword_length = 2 },
}) })
}) })