nvim: Add customised LSP labels

Taken from
https://github.com/lukas-reineke/dotfiles/blob/master/vim/lua/lsp.lua
This commit is contained in:
Sanchayan Maity 2021-01-08 20:44:39 +05:30
parent c3019c997d
commit 94865fce59

View file

@ -1,10 +1,26 @@
local remap = vim.api.nvim_set_keymap local remap = vim.api.nvim_set_keymap
vim.g.completion_enable_auto_popup = 0 vim.g.completion_enable_auto_popup = 0
vim.g.completion_auto_change_source = 1 vim.g.completion_auto_change_source = 1
vim.g.completion_trigger_on_delete = 1 vim.g.completion_trigger_on_delete = 1
vim.g.completion_matching_ignore_case = 0 vim.g.completion_matching_ignore_case = 0
vim.g.completion_matching_strategy_list = { 'exact', 'substring' } vim.g.completion_matching_strategy_list = { 'exact', 'substring' }
vim.g.completion_customize_lsp_label = {
Function = " [function]",
Method = " [method]",
Reference = " [reference]",
Enum = " [enum]",
Field = "ﰠ [field]",
Keyword = " [key]",
Variable = " [variable]",
Folder = " [folder]",
Snippet = " [snippet]",
Operator = " [operator]",
Module = " [module]",
Text = "ﮜ[text]",
Class = " [class]",
Interface = " [interface]"
}
vim.g.completion_chain_complete_list = { vim.g.completion_chain_complete_list = {
c = { c = {