update configs

This commit is contained in:
ksyasuda 2023-05-03 23:59:17 -07:00
parent 3e4fae57f3
commit 7cff58dede
5 changed files with 104 additions and 19 deletions

View File

@ -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 = '',

View File

@ -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
})

View File

@ -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"})

View File

@ -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] .. ")"

View File

@ -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,