From 166e466cd70406ea3ea8648c1bdcd67e6b14898a Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Fri, 5 Jan 2024 01:58:54 +0500 Subject: [PATCH] changed cmp icons --- .config/alacritty/alacritty.toml | 4 +-- .config/nvim/init.lua | 1 - .config/nvim/lua/user/cmp.lua | 54 ++++++++++++++++---------------- .zshrc | 2 +- 4 files changed, 30 insertions(+), 31 deletions(-) diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index dc378a1..b12fb7e 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -1,4 +1,4 @@ -import = ["/home/nikita/.config/alacritty/themes/kanagawa_wave.toml"] +import = ["~/.config/alacritty/themes/kanagawa_wave.toml"] [env] TERM = "xterm-256color" @@ -7,7 +7,7 @@ TERM = "xterm-256color" size = 12.0 [font.normal] -family = "Input Mono" +family = "Input Nerd Font" style = "Regular" diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 283ba2c..ca5f795 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -3,7 +3,6 @@ require("user.plugins") require("user.themes.kanagawa") require("user.bufferline") - require("user.options") require("user.keymaps") diff --git a/.config/nvim/lua/user/cmp.lua b/.config/nvim/lua/user/cmp.lua index be1345e..300740a 100644 --- a/.config/nvim/lua/user/cmp.lua +++ b/.config/nvim/lua/user/cmp.lua @@ -15,32 +15,32 @@ local check_backspace = function() return col == 0 or vim.fn.getline("."):sub(col, col):match "%s" end -local kind_icons = { - Text = "", - Method = "m", - Function = "", - Constructor = "", - Field = "", - Variable = "", - Class = "", - Interface = "", - Module = "", - Property = "", - Unit = "", - Value = "", - Enum = "", - Keyword = "", - Snippet = "", - Color = "", - File = "", - Reference = "", - Folder = "", - EnumMember = "", - Constant = "", - Struct = "", - Event = "", - Operator = "", - TypeParameter = "", +local cmp_kinds = { + Text = ' ', + Method = ' ', + Function = ' ', + Constructor = ' ', + Field = ' ', + Variable = ' ', + Class = ' ', + Interface = ' ', + Module = ' ', + Property = ' ', + Unit = ' ', + Value = ' ', + Enum = ' ', + Keyword = ' ', + Snippet = ' ', + Color = ' ', + File = ' ', + Reference = ' ', + Folder = ' ', + EnumMember = ' ', + Constant = ' ', + Struct = ' ', + Event = ' ', + Operator = ' ', + TypeParameter = ' ', } cmp.setup { @@ -96,7 +96,7 @@ cmp.setup { fields = { "kind", "abbr", "menu" }, format = function(entry, vim_item) -- Kind icons - vim_item.kind = string.format("%s", kind_icons[vim_item.kind]) + vim_item.kind = string.format("%s", cmp_kinds[vim_item.kind]) vim_item.menu = ({ nvim_lsp = "[LSP]", luasnip = "[Snippet]", diff --git a/.zshrc b/.zshrc index 309746e..7d29bb2 100644 --- a/.zshrc +++ b/.zshrc @@ -104,6 +104,6 @@ alias config="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" export PATH=/home/nikita/.local/bin:$PATH export WLR_NO_HARDWARE_CURSORS=1 -export EDITOR=/usr/bin/nvim +export EDITOR=nvim export SUDO_EDITOR=/usr/bin/nvim export UPDATE_ZSH_DAYS=7