diff --git a/plugin-confs/bufferline.lua b/plugin-confs/bufferline.lua index 6f029cd..81b0484 100644 --- a/plugin-confs/bufferline.lua +++ b/plugin-confs/bufferline.lua @@ -16,7 +16,7 @@ require('bufferline').setup { -- and so changing this is NOT recommended, this is intended -- as an escape hatch for people who cannot bear it for whatever reason indicator_style = '▎', - buffer_close_icon = '', + buffer_close_icon = '', modified_icon = '●', close_icon = '', left_trunc_marker = '', diff --git a/plugin-confs/github-theme.lua b/plugin-confs/github-theme.lua index 6e96828..dc64e7a 100644 --- a/plugin-confs/github-theme.lua +++ b/plugin-confs/github-theme.lua @@ -1,19 +1,19 @@ -- Example config in Lua require("github-theme").setup({ - theme_style = "dark", - function_style = "italic", - sidebars = {"qf", "vista_kind", "terminal", "packer"}, + -- theme_style = "dark", + -- function_style = "italic", + -- sidebars = {"qf", "vista_kind", "terminal", "packer"}, - -- Change the "hint" color to the "orange" color, and make the "error" color bright red - colors = {hint = "orange", error = "#ff0000"}, + -- -- Change the "hint" color to the "orange" color, and make the "error" color bright red + -- colors = {hint = "orange", error = "#ff0000"}, - -- Overwrite the highlight groups - overrides = function(c) - return { - htmlTag = {fg = c.red, bg = "#282c34", sp = c.hint, style = "underline"}, - DiagnosticHint = {link = "LspDiagnosticsDefaultHint"}, - -- this will remove the highlight groups - TSField = {}, - } - end + -- -- Overwrite the highlight groups + -- overrides = function(c) + -- return { + -- htmlTag = {fg = c.red, bg = "#282c34", sp = c.hint, style = "underline"}, + -- DiagnosticHint = {link = "LspDiagnosticsDefaultHint"}, + -- -- this will remove the highlight groups + -- TSField = {}, + -- } + -- end }) diff --git a/plugin-confs/lsp-kind.lua b/plugin-confs/lsp-kind.lua index b34ed20..3b02734 100644 --- a/plugin-confs/lsp-kind.lua +++ b/plugin-confs/lsp-kind.lua @@ -1,8 +1,33 @@ -- lspkind.lua local lspkind = require("lspkind") lspkind.init({ + preset = 'default', symbol_map = { - Copilot = "" + Copilot = "", + Function = "󰊕", + Text = "󰊄", + Method = "󰆧", + Operator = "󰆕", + Keyword = "󰌋", + Variable = "󰂡", + Field = "󰇽", + Class = "󰠱", + Interface = "", + Module = "", + Property = "󰜢", + Unit = "", + Value = "󰎠", + Enum = "", + Snippet = "", + Color = "󰏘", + File = "󰈙", + Reference = "", + Folder = "󰉋", + EnumMember = "", + Constant = "󰏿", + Struct = "", + Event = "", + TypeParameter = "󰅲", }, }) vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"}) diff --git a/plugin-confs/nvim-cmp.lua b/plugin-confs/nvim-cmp.lua index 3d1b5d7..4f00836 100644 --- a/plugin-confs/nvim-cmp.lua +++ b/plugin-confs/nvim-cmp.lua @@ -20,6 +20,34 @@ lspkind.init({ vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"}) +local kind_icons = { + 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({ snippet = { expand = function(args) @@ -118,9 +146,41 @@ cmp.setup({ } }, formatting = { + -- options: 'text', 'text_symbol', 'symbol_text', 'symbol' + -- mode = 'symbol_text', fields = { "kind", "abbr", "menu" }, format = function(entry, vim_item) - local kind = require("lspkind").cmp_format({ mode = "symbol_text", maxwidth = 75 })(entry, vim_item) + local kind = require("lspkind").cmp_format({ + mode = "symbol_text", + maxwidth = 75, + symbol_map = { + Copilot = "", + Function = "󰊕", + Text = "󰊄", + Method = "󰆧", + Operator = "󰆕", + Keyword = "󰌋", + Variable = "󰂡", + Field = "󰇽", + Class = "󰠱", + Interface = "", + Module = "", + Property = "󰜢", + Unit = "", + Value = "󰎠", + Enum = "", + Snippet = "", + Color = "󰏘", + File = "󰈙", + Reference = "", + Folder = "󰉋", + EnumMember = "", + Constant = "󰏿", + Struct = "", + Event = "", + TypeParameter = "󰅲", + }, + })(entry, vim_item) local strings = vim.split(kind.kind, "%s", { trimempty = true }) kind.kind = " " .. strings[1] .. " " kind.menu = " (" .. strings[2] .. ")" diff --git a/plugin-confs/nvimtree.lua b/plugin-confs/nvimtree.lua index 6de2dfe..425b493 100644 --- a/plugin-confs/nvimtree.lua +++ b/plugin-confs/nvimtree.lua @@ -1,8 +1,8 @@ require 'nvim-tree'.setup { disable_netrw = false, hijack_netrw = false, - open_on_setup = false, - ignore_ft_on_setup = {}, + -- open_on_setup = false, + -- ignore_ft_on_setup = {}, -- auto_close = false, open_on_tab = false, hijack_cursor = false,