update configs
This commit is contained in:
parent
3e4fae57f3
commit
7cff58dede
@ -16,7 +16,7 @@ require('bufferline').setup {
|
|||||||
-- and so changing this is NOT recommended, this is intended
|
-- and so changing this is NOT recommended, this is intended
|
||||||
-- as an escape hatch for people who cannot bear it for whatever reason
|
-- as an escape hatch for people who cannot bear it for whatever reason
|
||||||
indicator_style = '▎',
|
indicator_style = '▎',
|
||||||
buffer_close_icon = '',
|
buffer_close_icon = '',
|
||||||
modified_icon = '●',
|
modified_icon = '●',
|
||||||
close_icon = '',
|
close_icon = '',
|
||||||
left_trunc_marker = '',
|
left_trunc_marker = '',
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
-- Example config in Lua
|
-- Example config in Lua
|
||||||
require("github-theme").setup({
|
require("github-theme").setup({
|
||||||
theme_style = "dark",
|
-- theme_style = "dark",
|
||||||
function_style = "italic",
|
-- function_style = "italic",
|
||||||
sidebars = {"qf", "vista_kind", "terminal", "packer"},
|
-- sidebars = {"qf", "vista_kind", "terminal", "packer"},
|
||||||
|
|
||||||
-- Change the "hint" color to the "orange" color, and make the "error" color bright red
|
-- -- Change the "hint" color to the "orange" color, and make the "error" color bright red
|
||||||
colors = {hint = "orange", error = "#ff0000"},
|
-- colors = {hint = "orange", error = "#ff0000"},
|
||||||
|
|
||||||
-- Overwrite the highlight groups
|
-- -- Overwrite the highlight groups
|
||||||
overrides = function(c)
|
-- overrides = function(c)
|
||||||
return {
|
-- return {
|
||||||
htmlTag = {fg = c.red, bg = "#282c34", sp = c.hint, style = "underline"},
|
-- htmlTag = {fg = c.red, bg = "#282c34", sp = c.hint, style = "underline"},
|
||||||
DiagnosticHint = {link = "LspDiagnosticsDefaultHint"},
|
-- DiagnosticHint = {link = "LspDiagnosticsDefaultHint"},
|
||||||
-- this will remove the highlight groups
|
-- -- this will remove the highlight groups
|
||||||
TSField = {},
|
-- TSField = {},
|
||||||
}
|
-- }
|
||||||
end
|
-- end
|
||||||
})
|
})
|
||||||
|
@ -1,8 +1,33 @@
|
|||||||
-- lspkind.lua
|
-- lspkind.lua
|
||||||
local lspkind = require("lspkind")
|
local lspkind = require("lspkind")
|
||||||
lspkind.init({
|
lspkind.init({
|
||||||
|
preset = 'default',
|
||||||
symbol_map = {
|
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"})
|
vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"})
|
||||||
|
@ -20,6 +20,34 @@ lspkind.init({
|
|||||||
|
|
||||||
vim.api.nvim_set_hl(0, "CmpItemKindCopilot", {fg ="#6CC644"})
|
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({
|
cmp.setup({
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
@ -118,9 +146,41 @@ cmp.setup({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
|
-- options: 'text', 'text_symbol', 'symbol_text', 'symbol'
|
||||||
|
-- mode = 'symbol_text',
|
||||||
fields = { "kind", "abbr", "menu" },
|
fields = { "kind", "abbr", "menu" },
|
||||||
format = function(entry, vim_item)
|
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 })
|
local strings = vim.split(kind.kind, "%s", { trimempty = true })
|
||||||
kind.kind = " " .. strings[1] .. " "
|
kind.kind = " " .. strings[1] .. " "
|
||||||
kind.menu = " (" .. strings[2] .. ")"
|
kind.menu = " (" .. strings[2] .. ")"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
require 'nvim-tree'.setup {
|
require 'nvim-tree'.setup {
|
||||||
disable_netrw = false,
|
disable_netrw = false,
|
||||||
hijack_netrw = false,
|
hijack_netrw = false,
|
||||||
open_on_setup = false,
|
-- open_on_setup = false,
|
||||||
ignore_ft_on_setup = {},
|
-- ignore_ft_on_setup = {},
|
||||||
-- auto_close = false,
|
-- auto_close = false,
|
||||||
open_on_tab = false,
|
open_on_tab = false,
|
||||||
hijack_cursor = false,
|
hijack_cursor = false,
|
||||||
|
Loading…
Reference in New Issue
Block a user