Merge branch 'master' of git.blakenorth.net/home/git/dotfiles
This commit is contained in:
commit
2abe191f35
9 changed files with 45 additions and 13 deletions
|
@ -167,7 +167,17 @@ M.cmp = function()
|
|||
formatting = {
|
||||
format = function(entry, vim_item)
|
||||
-- fancy icons and a name of kind
|
||||
vim_item.kind = require("lspkind").presets.default[vim_item.kind] .. " " .. vim_item.kind
|
||||
format = require('lspkind').cmp_format({
|
||||
mode = 'symbol', -- show only symbol annotations
|
||||
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
|
||||
|
||||
-- The function below will be called before any actual modifications from lspkind
|
||||
-- so that you can provide more controls on popup customization. (See [#30](https://github.com/onsails/lspkind-nvim/pull/30))
|
||||
-- before = function (entry, vim_item)
|
||||
-- ...
|
||||
-- return vim_item
|
||||
-- end
|
||||
})
|
||||
-- set a name for each source
|
||||
vim_item.menu = ({
|
||||
path = "[Path]",
|
||||
|
|
|
@ -134,6 +134,7 @@ return require('packer').startup({function()
|
|||
'simrat39/symbols-outline.nvim',
|
||||
config = function()
|
||||
vim.cmd 'command! SO SymbolsOutline'
|
||||
vim.cmd 'nnoremap <Leader>so <cmd>SymbolsOutline<CR>'
|
||||
end,
|
||||
}
|
||||
use { -- ALE: Support for lots of linters, etc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue