From 4c1fc5ac212de6812407c4c49ba01ee7a44215c0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Jun 2023 12:13:47 +0200 Subject: [PATCH] nvim: Fix diagnostic symbol display Fixed the codepoints for diagnostic display for the new nerd font codepoints. --- nvim/.config/nvim/lua/plugins/config/cmp.lua | 38 ++++++++++---------- nvim/.config/nvim/lua/plugins/config/lsp.lua | 4 +-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/config/cmp.lua b/nvim/.config/nvim/lua/plugins/config/cmp.lua index 938f923..bf1ac57 100644 --- a/nvim/.config/nvim/lua/plugins/config/cmp.lua +++ b/nvim/.config/nvim/lua/plugins/config/cmp.lua @@ -7,31 +7,31 @@ local has_words_before = function() end local kind_icons = { - Text = "", - Method = "", - Function = "", + Text = "", + Method = "", + Function = "󰊕", Constructor = "", - Field = "", - Variable = "", - Class = "ﴯ", + Field = "", + Variable = "", + Class = "", Interface = "", - Module = "", - Property = "ﰠ", + Module = "", + Property = "", Unit = "", - Value = "", - Enum = "", - Keyword = "", - Snippet = "", - Color = "", - File = "", + Value = "V", + Enum = "", + Keyword = "", + Snippet = "", + Color = "", + File = "", Reference = "", - Folder = "", - EnumMember = "", - Constant = "", + Folder = "", + EnumMember = "", + Constant = "", Struct = "", Event = "", - Operator = "", - TypeParameter = "", + Operator = "", + TypeParameter = "", } cmp.setup({ diff --git a/nvim/.config/nvim/lua/plugins/config/lsp.lua b/nvim/.config/nvim/lua/plugins/config/lsp.lua index 3ee4183..65e6c4b 100644 --- a/nvim/.config/nvim/lua/plugins/config/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/config/lsp.lua @@ -2,7 +2,7 @@ vim.diagnostic.config({ virtual_text = true }) vim.fn.sign_define("DiagnosticSignError", { text = "✘", texthl = "DiagnosticSignError" }) vim.fn.sign_define("DiagnosticSignWarn", { text = "", texthl = "DiagnosticSignWarn" }) vim.fn.sign_define("DiagnosticSignInfo", { text = "", texthl = "DiagnosticSignInfo" }) -vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" }) +vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" }) local lsp = require("lsp-setup") @@ -128,7 +128,7 @@ local lspconfig = require("lspconfig") lspconfig.pyright.setup({ on_attach = function(client, bufnr) on_attach(client, bufnr) - local python_path, msg = require("util").get_python_venv(client.config.root_dir) + local python_path, _ = require("util").get_python_venv(client.config.root_dir) vim.notify_once(string.format("[PYTHON VENV]\n%s", python_path)) client.config.settings.python.pythonPath = python_path end,