From a4e69198996e51f7dd12b20b246256be1c853c78 Mon Sep 17 00:00:00 2001 From: Fabian Schmidt Date: Sun, 26 Feb 2023 13:34:44 +0100 Subject: [PATCH] Reenable fidget --- lua/plugins/lsp.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index e8d22d1..e4f74f1 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -95,11 +95,14 @@ return { }, { 'simrat39/rust-tools.nvim' }, { 'onsails/lspkind-nvim' }, -- pictograms replace (?) with lspsaga - { 'j-hui/fidget.nvim' }, -- show lsp status + { + 'j-hui/fidget.nvim', + config = true + }, -- show lsp status -- completion { 'hrsh7th/nvim-cmp', - config = function() + config = function() local cmp = require('cmp') local lspkind = require('lspkind') @@ -114,7 +117,7 @@ return { mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert }, [""] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Insert }, - [''] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }), + [''] = cmp.mapping(cmp.mapping.scroll_docs( -4), { 'i', 'c' }), [''] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }), [''] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }), [''] = cmp.mapping.confirm({ @@ -133,8 +136,8 @@ return { { name = 'path' }, { name = 'luasnip' }, { name = 'nvim_lsp_signature_help' }, - }, { - { name = 'buffer', keyword_length = 5 }, + }, { + { name = 'buffer', keyword_length = 5 }, }), formatting = { format = lspkind.cmp_format { @@ -161,8 +164,8 @@ return { cmp.setup.cmdline(':', { sources = cmp.config.sources({ { name = 'path' } - }, { - { name = 'cmdline' } + }, { + { name = 'cmdline' } }) }) end,