diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index cf72795..99397ca 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -6,8 +6,7 @@ "git-messenger.vim": { "branch": "master", "commit": "8a61bdfa351d4df9a9118ee1d3f45edbed617072" }, "gruvbox.nvim": { "branch": "main", "commit": "517b012757fbe7a4d6e507baf5cc75837e62734f" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "ab640b38ca9fa50d25d2d249b6606b9456b628d5" }, - "mason.nvim": { "branch": "main", "commit": "41e75af1f578e55ba050c863587cffde3556ffa6" }, + "lspkind.nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" }, "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, "nvim-dap": { "branch": "master", "commit": "e154fdb6d70b3765d71f296e718b29d8b7026a63" }, "nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" }, diff --git a/.config/nvim/lua/appearance.lua b/.config/nvim/lua/appearance.lua index 02310ac..cca9226 100644 --- a/.config/nvim/lua/appearance.lua +++ b/.config/nvim/lua/appearance.lua @@ -18,3 +18,9 @@ vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with( vim.diagnostic.config{ float={border=_border} } + +-- git-messenger +vim.g.git_messenger_floating_win_opts = { + border = _border +} +vim.g.git_messenger_include_diff = "current" diff --git a/.config/nvim/lua/completion.lua b/.config/nvim/lua/completion.lua index 9382b14..f8d607e 100644 --- a/.config/nvim/lua/completion.lua +++ b/.config/nvim/lua/completion.lua @@ -1,4 +1,5 @@ local cmp = require("cmp") +local lspkind = require('lspkind') cmp.setup({ snippet = { expand = function(args) @@ -21,5 +22,17 @@ cmp.setup({ { name = 'vsnip' }, { name = 'path' }, { name = 'treesitter' }, - }) + }), + formatting = { + format = lspkind.cmp_format({ + mode = "symbol_text", + menu = ({ + buffer = "[Buffer]", + nvim_lsp = "[LSP]", + luasnip = "[LuaSnip]", + nvim_lua = "[Lua]", + latex_symbols = "[Latex]", + }) + }), + } }) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index b09b67a..6724675 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -39,6 +39,8 @@ require("lazy").setup({ "neovim/nvim-lspconfig", -- Icons for Treesitter/nvim-tree "nvim-tree/nvim-web-devicons", + -- LSP icons + "onsails/lspkind.nvim", -- LSP completion "sar/cmp-lsp.nvim", -- Treesitter completion