vim: custom icons for autocomplete
This commit is contained in:
parent
353827431f
commit
0c3c831212
1 changed files with 34 additions and 4 deletions
|
@ -61,11 +61,41 @@ local config = function()
|
||||||
formatting = {
|
formatting = {
|
||||||
format = require('lspkind').cmp_format {
|
format = require('lspkind').cmp_format {
|
||||||
mode = 'symbol_text',
|
mode = 'symbol_text',
|
||||||
|
|
||||||
menu = {
|
menu = {
|
||||||
buffer = "[buf]",
|
buffer = 'buf',
|
||||||
nvim_lsp = "[LSP]",
|
nvim_lsp = 'LSP',
|
||||||
nvim_lua = "[lua]",
|
nvim_lua = 'lua',
|
||||||
path = "[path]",
|
path = '',
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Custom mix of lspkind defaults and VS Code codicons :)
|
||||||
|
symbol_map = {
|
||||||
|
Text = '', -- VS Code
|
||||||
|
Method = '', -- lspkind
|
||||||
|
Function = '', -- lspkind
|
||||||
|
Constructor = '', -- lspkind
|
||||||
|
Field = '', -- lspkind
|
||||||
|
Variable = '', -- lspkind
|
||||||
|
Class = '', -- VS Code
|
||||||
|
Interface = '', -- VS Code
|
||||||
|
Module = '', -- VS Code
|
||||||
|
Property = '', -- VS Code
|
||||||
|
Unit = '', -- VS Code
|
||||||
|
Value = '', -- lspkind
|
||||||
|
Enum = '', -- lspkind
|
||||||
|
Keyword = '', -- VS Code
|
||||||
|
Snippet = '', -- VS Code
|
||||||
|
Color = '', -- VS Code
|
||||||
|
File = '', -- VS Code
|
||||||
|
Reference = '', -- VS Code
|
||||||
|
Folder = '', -- VS Code
|
||||||
|
EnumMember = '', -- lspkind
|
||||||
|
Constant = '', -- lspkind
|
||||||
|
Struct = '', -- VS Code
|
||||||
|
Event = '', -- VS Code
|
||||||
|
Operator = '', -- VS Code
|
||||||
|
TypeParameter = '', -- VS Code
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue