mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim changes
* refractor(nvim-lualine): lualine in powerline style * feat(nvim, emacs): Org Mode Integrations Setup * feat(nvim): C-w keymaps * feat(wezterm): Change tab bar to top * feat(nvim): catppuccin integrations * feat(nvim-cmp): Icon supports
This commit is contained in:
parent
1a1c8707ce
commit
2248d3a237
14 changed files with 244 additions and 127 deletions
|
|
@ -31,8 +31,15 @@ return {
|
|||
|
||||
local raw_keymaps = require("keymaps").cmp_nvim_keymaps(cmp.mapping)
|
||||
local mapped = set_keymaps(raw_keymaps)
|
||||
local kind_icons = require("config.icons").lsp_kind
|
||||
-- 配置 nvim-cmp
|
||||
cmp.setup({
|
||||
formatting = {
|
||||
format = function(entry, vim_item)
|
||||
vim_item.kind = string.format("%s %s", kind_icons[vim_item.kind] or "", vim_item.kind)
|
||||
return vim_item
|
||||
end,
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require("luasnip").lsp_expand(args.body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue