diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 5f84b1f..1471fab 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -93,7 +93,7 @@ return { end, }, sources = { - { name = 'luasnip', priority = 8 }, + { name = 'luasnip', priority = 8 }, { name = 'nvim_lsp', option = { @@ -137,9 +137,9 @@ return { }, enabled = function() return vim.api.nvim_get_option_value('buftype', { buf = 0 }) ~= 'prompt' - or vim.api.nvim_get_option_value('filetype', { buf = 0 }) == 'dap-repl' - or vim.api.nvim_get_option_value('filetype', { buf = 0 }) == 'dapui_watches' - or vim.api.nvim_get_option_value('filetype', { buf = 0 }) == 'dapui_hover' + or vim.api.nvim_get_option_value('filetype', { buf = 0 }) == 'dap-repl' + or vim.api.nvim_get_option_value('filetype', { buf = 0 }) == 'dapui_watches' + or vim.api.nvim_get_option_value('filetype', { buf = 0 }) == 'dapui_hover' end, -- completion = { -- completeopt = 'menu,menuone,noinsert, noselect', @@ -160,8 +160,9 @@ return { format = function(entry, vim_item) local kind = require('lspkind').cmp_format({ mode = 'symbol', - symbol_map = { Codeium = "", }, - maxwidth = 50 })(entry, vim_item) + symbol_map = { Codeium = '' }, + maxwidth = 50, + })(entry, vim_item) local strings = vim.split(kind.kind, '%s', { trimempty = true }) kind.kind = ' ' .. (strings[1] or '') .. ' ' return kind