mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: update config
This commit is contained in:
parent
c7af34ff72
commit
6153dea7ff
10 changed files with 2617 additions and 1507 deletions
|
@ -18,7 +18,7 @@
|
||||||
"lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" },
|
"lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" },
|
||||||
"lsp-progress.nvim": { "branch": "main", "commit": "83b16a9791fa788c0a7ca90374118ed15d2c09ed" },
|
"lsp-progress.nvim": { "branch": "main", "commit": "83b16a9791fa788c0a7ca90374118ed15d2c09ed" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a14770dc8c7cb29643870ac79788eec6f7ce1f8" },
|
||||||
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
|
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
|
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
|
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
|
||||||
|
@ -26,10 +26,10 @@
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "88821b67e6007041f43b802f58e3d9fa9bfce684" },
|
"none-ls.nvim": { "branch": "main", "commit": "88821b67e6007041f43b802f58e3d9fa9bfce684" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
|
"nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
|
"nvim-cmp": { "branch": "main", "commit": "8f3c541407e691af6163e2447f3af1bd6e17f9a3" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
||||||
"nvim-material-icon": { "branch": "main", "commit": "602088c2682e61cbebd7191de7dc88bfa90c6890" },
|
"nvim-material-icon": { "branch": "main", "commit": "ee3d4f54a3bf9716b7f8ad5eefcaa53afebd24a1" },
|
||||||
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
|
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
|
||||||
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
||||||
"statuscol.nvim": { "branch": "main", "commit": "483b9a596dfd63d541db1aa51ee6ee9a1441c4cc" },
|
"statuscol.nvim": { "branch": "main", "commit": "483b9a596dfd63d541db1aa51ee6ee9a1441c4cc" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "7d1698f3d88b448e0639974248cc17f49b7b8acf" },
|
"telescope.nvim": { "branch": "master", "commit": "7d1698f3d88b448e0639974248cc17f49b7b8acf" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
"toggleterm.nvim": { "branch": "main", "commit": "066cccf48a43553a80a210eb3be89a15d789d6e6" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "e522e0dd742a83506db0a72e1ced68c9c130f185" },
|
"vim-illuminate": { "branch": "master", "commit": "e522e0dd742a83506db0a72e1ced68c9c130f185" },
|
||||||
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
||||||
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
|
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
|
||||||
|
|
|
@ -1,282 +0,0 @@
|
||||||
return {
|
|
||||||
-- {
|
|
||||||
-- "nvim-lualine/lualine.nvim",
|
|
||||||
-- event = "insertEnter",
|
|
||||||
-- config = function()
|
|
||||||
-- local hide_in_width = function()
|
|
||||||
-- return vim.fn.winwidth(0) > 80
|
|
||||||
-- end
|
|
||||||
-- local icons = require("user.icons")
|
|
||||||
--
|
|
||||||
-- -- start for lsp
|
|
||||||
-- local list_registered_providers_names = function(filetype)
|
|
||||||
-- local s = require("null-ls.sources")
|
|
||||||
-- local available_sources = s.get_available(filetype)
|
|
||||||
-- local registered = {}
|
|
||||||
-- for _, source in ipairs(available_sources) do
|
|
||||||
-- for method in pairs(source.methods) do
|
|
||||||
-- registered[method] = registered[method] or {}
|
|
||||||
-- table.insert(registered[method], source.name)
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- return registered
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- local null_ls = require("null-ls")
|
|
||||||
-- -- for formatter
|
|
||||||
-- local list_registered = function(filetype)
|
|
||||||
-- local method = null_ls.methods.FORMATTING
|
|
||||||
-- local registered_providers = list_registered_providers_names(filetype)
|
|
||||||
-- return registered_providers[method] or {}
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- --- for linter
|
|
||||||
-- local alternative_methods = {
|
|
||||||
-- null_ls.methods.DIAGNOSTICS,
|
|
||||||
-- null_ls.methods.DIAGNOSTICS_ON_OPEN,
|
|
||||||
-- null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- local linter_list_registered = function(filetype)
|
|
||||||
-- local registered_providers = list_registered_providers_names(filetype)
|
|
||||||
-- local providers_for_methods = vim.tbl_flatten(vim.tbl_map(function(m)
|
|
||||||
-- return registered_providers[m] or {}
|
|
||||||
-- end, alternative_methods))
|
|
||||||
--
|
|
||||||
-- return providers_for_methods
|
|
||||||
-- end
|
|
||||||
-- -- end for lsp
|
|
||||||
--
|
|
||||||
-- local lsp_info = {
|
|
||||||
-- function()
|
|
||||||
-- local msg = "LS Inactive"
|
|
||||||
-- local buf_ft = vim.bo.filetype
|
|
||||||
-- local clients = vim.lsp.get_active_clients()
|
|
||||||
-- -- start register
|
|
||||||
-- local buf_clients = vim.lsp.buf_get_clients()
|
|
||||||
-- local buf_client_names = {}
|
|
||||||
-- if next(buf_clients) == nil then
|
|
||||||
-- -- TODO: clean up this if statement
|
|
||||||
-- if type(msg) == "boolean" or #msg == 0 then
|
|
||||||
-- return "LS Inactive"
|
|
||||||
-- end
|
|
||||||
-- return msg
|
|
||||||
-- end
|
|
||||||
-- -- add client
|
|
||||||
-- for _, client in pairs(buf_clients) do
|
|
||||||
-- if client.name ~= "null-ls" and client.name ~= "copilot" then
|
|
||||||
-- table.insert(buf_client_names, client.name)
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- -- add formatter
|
|
||||||
-- local supported_formatters = list_registered(buf_ft)
|
|
||||||
-- vim.list_extend(buf_client_names, supported_formatters)
|
|
||||||
-- -- add linter
|
|
||||||
-- local supported_linters = linter_list_registered(buf_ft)
|
|
||||||
-- vim.list_extend(buf_client_names, supported_linters)
|
|
||||||
-- -- decomple
|
|
||||||
-- local unique_client_names = vim.fn.uniq(buf_client_names)
|
|
||||||
-- local msg = table.concat(unique_client_names, ", ")
|
|
||||||
-- return msg
|
|
||||||
-- end,
|
|
||||||
-- --icon = " ",
|
|
||||||
-- icon = icons.ui.Gear .. "",
|
|
||||||
-- padding = 1,
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- local diagnostics = {
|
|
||||||
-- "diagnostics",
|
|
||||||
-- sources = { "nvim_diagnostic" },
|
|
||||||
-- sections = { "error", "warn" },
|
|
||||||
-- -- symbols = { error = " ", warn = " " },
|
|
||||||
-- symbols = {
|
|
||||||
-- error = icons.diagnostics.BoldError .. " ",
|
|
||||||
-- warn = icons.diagnostics.BoldWarning .. " ",
|
|
||||||
-- },
|
|
||||||
-- colored = true,
|
|
||||||
-- update_in_insert = false,
|
|
||||||
-- always_visible = false,
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- local diff = {
|
|
||||||
-- "diff",
|
|
||||||
-- colored = true,
|
|
||||||
-- -- symbols = { added = " ", modified = " ", removed = " " }, -- changes diff symbols
|
|
||||||
-- symbols = {
|
|
||||||
-- added = icons.git.LineAdded .. " ",
|
|
||||||
-- modified = icons.git.LineModified .. " ",
|
|
||||||
-- removed = icons.git.LineRemoved .. " ",
|
|
||||||
-- }, -- changes diff symbols
|
|
||||||
-- cond = hide_in_width,
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- local spaces = function()
|
|
||||||
-- -- return " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
|
||||||
-- return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- local mode = {
|
|
||||||
-- "mode",
|
|
||||||
-- padding = 1,
|
|
||||||
-- separator = { left = " " },
|
|
||||||
-- -- right_padding = 3,
|
|
||||||
-- fmt = function(str)
|
|
||||||
-- return icons.ui.Neovim .. " " .. str
|
|
||||||
-- end,
|
|
||||||
-- }
|
|
||||||
-- local branch = {
|
|
||||||
-- "branch",
|
|
||||||
-- padding = 1,
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- local get_branch = function()
|
|
||||||
-- if vim.b.gitsigns_head ~= nil then
|
|
||||||
-- return " " .. vim.b.gitsigns_head
|
|
||||||
-- else
|
|
||||||
-- return "" .. vim.fn.fnamemodify("", ":t")
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- local lsp_progress = {}
|
|
||||||
-- local data_ok, lspprogress = pcall(require, "lsp-progress")
|
|
||||||
-- if data_ok then
|
|
||||||
-- lsp_progress = lspprogress.progress
|
|
||||||
-- end
|
|
||||||
-- -- stylua: ignore
|
|
||||||
-- local colors = {
|
|
||||||
-- blue = '#50fa7b',
|
|
||||||
-- cyan = '#f1fa8c',
|
|
||||||
-- black = '#1a1b26',
|
|
||||||
-- black_transparant = 'none',
|
|
||||||
-- white = '#c6c6c6',
|
|
||||||
-- red = "#ff757f",
|
|
||||||
-- skyblue_1 = '#bd93f9',
|
|
||||||
-- grey = '#5f6a8e',
|
|
||||||
-- yellow = "#ffb86c",
|
|
||||||
-- fg_gutter = "#3b4261",
|
|
||||||
-- green1 = "#bd93f9",
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- -- check config for theme
|
|
||||||
-- local set_theme
|
|
||||||
-- local bubbles_theme = {}
|
|
||||||
-- local data_exists, config = pcall(require, "core.config")
|
|
||||||
-- if data_exists then
|
|
||||||
-- if config.colorscheme ~= nil then
|
|
||||||
-- local color = config.colorscheme
|
|
||||||
-- switch(color, {
|
|
||||||
-- ["tokyonight"] = function()
|
|
||||||
-- set_theme = "auto"
|
|
||||||
-- end,
|
|
||||||
-- ["tokyonight-night"] = function()
|
|
||||||
-- set_theme = "auto"
|
|
||||||
-- end,
|
|
||||||
-- ["tokyonight-storm"] = function()
|
|
||||||
-- set_theme = "auto"
|
|
||||||
-- end,
|
|
||||||
-- ["tokyonight-day"] = function()
|
|
||||||
-- set_theme = "auto"
|
|
||||||
-- end,
|
|
||||||
-- ["tokyonight-moon"] = function()
|
|
||||||
-- set_theme = "auto"
|
|
||||||
-- end,
|
|
||||||
-- ["dracula"] = function()
|
|
||||||
-- local clr = require("dracula").colors()
|
|
||||||
-- colors.blue = clr.green
|
|
||||||
-- colors.black = clr.black
|
|
||||||
-- colors.cyan = clr.yellow
|
|
||||||
-- set_theme = bubbles_theme
|
|
||||||
-- end,
|
|
||||||
-- default = function()
|
|
||||||
-- set_theme = "auto"
|
|
||||||
-- end,
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- bubbles_theme = {
|
|
||||||
-- normal = {
|
|
||||||
-- a = { fg = colors.black, bg = colors.skyblue_1 },
|
|
||||||
-- b = { fg = colors.white, bg = colors.grey },
|
|
||||||
-- c = { fg = colors.white, bg = "none" },
|
|
||||||
-- },
|
|
||||||
--
|
|
||||||
-- insert = {
|
|
||||||
-- a = { fg = colors.black, bg = colors.blue },
|
|
||||||
-- b = { fg = colors.blue, bg = colors.grey },
|
|
||||||
-- },
|
|
||||||
-- visual = {
|
|
||||||
-- a = { fg = colors.black, bg = colors.cyan },
|
|
||||||
-- b = { fg = colors.cyan, bg = colors.grey },
|
|
||||||
-- },
|
|
||||||
-- replace = {
|
|
||||||
-- a = { bg = colors.red, fg = colors.black },
|
|
||||||
-- b = { bg = colors.fg_gutter, fg = colors.red },
|
|
||||||
-- },
|
|
||||||
-- command = {
|
|
||||||
-- a = { bg = colors.yellow, fg = colors.black },
|
|
||||||
-- b = { bg = colors.fg_gutter, fg = colors.yellow },
|
|
||||||
-- },
|
|
||||||
-- terminal = {
|
|
||||||
-- a = { bg = colors.green1, fg = colors.black },
|
|
||||||
-- b = { bg = colors.fg_gutter, fg = colors.green1 },
|
|
||||||
-- },
|
|
||||||
-- inactive = {
|
|
||||||
-- a = { fg = colors.white, bg = colors.black_transparant },
|
|
||||||
-- b = { fg = colors.white, bg = colors.black_transparant },
|
|
||||||
-- c = { fg = colors.black, bg = "#393f4a" },
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- if set_theme == "auto" then
|
|
||||||
-- bubbles_theme = vim.fn.fnamemodify("auto", ":t")
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- require("lualine").setup({
|
|
||||||
-- options = {
|
|
||||||
-- theme = bubbles_theme,
|
|
||||||
-- -- theme = "auto",
|
|
||||||
-- component_separators = { left = "", right = "" },
|
|
||||||
-- section_separators = { left = "", right = "" },
|
|
||||||
-- disabled_filetypes = {
|
|
||||||
-- "TelescopePrompt",
|
|
||||||
-- "packer",
|
|
||||||
-- "alpha",
|
|
||||||
-- "dashboard",
|
|
||||||
-- "NvimTree",
|
|
||||||
-- "Outline",
|
|
||||||
-- "DressingInput",
|
|
||||||
-- "toggleterm",
|
|
||||||
-- "lazy",
|
|
||||||
-- "mason",
|
|
||||||
-- "neo-tree",
|
|
||||||
-- "startuptime",
|
|
||||||
-- },
|
|
||||||
-- always_divide_middle = true,
|
|
||||||
-- },
|
|
||||||
-- sections = {
|
|
||||||
-- lualine_a = {
|
|
||||||
-- mode,
|
|
||||||
-- },
|
|
||||||
-- lualine_b = { "branch" },
|
|
||||||
-- lualine_c = { lsp_info, diagnostics, lsp_progress },
|
|
||||||
-- lualine_x = { diff, spaces, "filetype" },
|
|
||||||
-- lualine_y = { "progress" },
|
|
||||||
-- lualine_z = {
|
|
||||||
-- { "location", separator = { right = " " }, padding = { left = 1, right = 1 } },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- inactive_sections = {
|
|
||||||
-- lualine_a = { "filename" },
|
|
||||||
-- lualine_b = {},
|
|
||||||
-- lualine_c = {},
|
|
||||||
-- lualine_x = {},
|
|
||||||
-- lualine_y = {},
|
|
||||||
-- lualine_z = { "location" },
|
|
||||||
-- },
|
|
||||||
-- tabline = {},
|
|
||||||
-- extensions = {},
|
|
||||||
-- })
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
}
|
|
|
@ -1,290 +1,290 @@
|
||||||
return {
|
return {
|
||||||
{
|
-- {
|
||||||
"nvim-lualine/lualine.nvim",
|
-- "nvim-lualine/lualine.nvim",
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
config = function()
|
-- config = function()
|
||||||
local hide_in_width = function()
|
-- local hide_in_width = function()
|
||||||
return vim.fn.winwidth(0) > 80
|
-- return vim.fn.winwidth(0) > 80
|
||||||
end
|
-- end
|
||||||
local icons = require("user.icons")
|
-- local icons = require("user.icons")
|
||||||
|
--
|
||||||
local getLeftSubstring = function(word, length)
|
-- local getLeftSubstring = function(word, length)
|
||||||
if #word > length then
|
-- if #word > length then
|
||||||
return string.sub(word, 1, length) .. "..."
|
-- return string.sub(word, 1, length) .. "..."
|
||||||
else
|
-- else
|
||||||
return word
|
-- return word
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
-- start for lsp
|
-- -- start for lsp
|
||||||
local list_registered_providers_names = function(filetype)
|
-- local list_registered_providers_names = function(filetype)
|
||||||
local s = require("null-ls.sources")
|
-- local s = require("null-ls.sources")
|
||||||
local available_sources = s.get_available(filetype)
|
-- local available_sources = s.get_available(filetype)
|
||||||
local registered = {}
|
-- local registered = {}
|
||||||
for _, source in ipairs(available_sources) do
|
-- for _, source in ipairs(available_sources) do
|
||||||
for method in pairs(source.methods) do
|
-- for method in pairs(source.methods) do
|
||||||
registered[method] = registered[method] or {}
|
-- registered[method] = registered[method] or {}
|
||||||
table.insert(registered[method], source.name)
|
-- table.insert(registered[method], source.name)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
return registered
|
-- return registered
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
local null_ls = require("null-ls")
|
-- local null_ls = require("null-ls")
|
||||||
-- for formatter
|
-- -- for formatter
|
||||||
local list_registered = function(filetype)
|
-- local list_registered = function(filetype)
|
||||||
local method = null_ls.methods.FORMATTING
|
-- local method = null_ls.methods.FORMATTING
|
||||||
local registered_providers = list_registered_providers_names(filetype)
|
-- local registered_providers = list_registered_providers_names(filetype)
|
||||||
return registered_providers[method] or {}
|
-- return registered_providers[method] or {}
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
--- for linter
|
-- --- for linter
|
||||||
local alternative_methods = {
|
-- local alternative_methods = {
|
||||||
null_ls.methods.DIAGNOSTICS,
|
-- null_ls.methods.DIAGNOSTICS,
|
||||||
null_ls.methods.DIAGNOSTICS_ON_OPEN,
|
-- null_ls.methods.DIAGNOSTICS_ON_OPEN,
|
||||||
null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
-- null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
local linter_list_registered = function(filetype)
|
-- local linter_list_registered = function(filetype)
|
||||||
local registered_providers = list_registered_providers_names(filetype)
|
-- local registered_providers = list_registered_providers_names(filetype)
|
||||||
local providers_for_methods = vim.tbl_flatten(vim.tbl_map(function(m)
|
-- local providers_for_methods = vim.tbl_flatten(vim.tbl_map(function(m)
|
||||||
return registered_providers[m] or {}
|
-- return registered_providers[m] or {}
|
||||||
end, alternative_methods))
|
-- end, alternative_methods))
|
||||||
|
--
|
||||||
return providers_for_methods
|
-- return providers_for_methods
|
||||||
end
|
-- end
|
||||||
-- end for lsp
|
-- -- end for lsp
|
||||||
|
--
|
||||||
local lsp_info = {
|
-- local lsp_info = {
|
||||||
function()
|
-- function()
|
||||||
local msg = "LS Inactive"
|
-- local msg = "LS Inactive"
|
||||||
local buf_ft = vim.bo.filetype
|
-- local buf_ft = vim.bo.filetype
|
||||||
local clients = vim.lsp.get_active_clients()
|
-- local clients = vim.lsp.get_active_clients()
|
||||||
-- start register
|
-- -- start register
|
||||||
local buf_clients = vim.lsp.buf_get_clients()
|
-- local buf_clients = vim.lsp.buf_get_clients()
|
||||||
local buf_client_names = {}
|
-- local buf_client_names = {}
|
||||||
if next(buf_clients) == nil then
|
-- if next(buf_clients) == nil then
|
||||||
-- TODO: clean up this if statement
|
-- -- TODO: clean up this if statement
|
||||||
if type(msg) == "boolean" or #msg == 0 then
|
-- if type(msg) == "boolean" or #msg == 0 then
|
||||||
return "LS Inactive"
|
-- return "LS Inactive"
|
||||||
end
|
-- end
|
||||||
return msg
|
-- return msg
|
||||||
end
|
-- end
|
||||||
-- add client
|
-- -- add client
|
||||||
for _, client in pairs(buf_clients) do
|
-- for _, client in pairs(buf_clients) do
|
||||||
if client.name ~= "null-ls" and client.name ~= "copilot" then
|
-- if client.name ~= "null-ls" and client.name ~= "copilot" then
|
||||||
table.insert(buf_client_names, client.name)
|
-- table.insert(buf_client_names, client.name)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
-- add formatter
|
-- -- add formatter
|
||||||
local supported_formatters = list_registered(buf_ft)
|
-- local supported_formatters = list_registered(buf_ft)
|
||||||
vim.list_extend(buf_client_names, supported_formatters)
|
-- vim.list_extend(buf_client_names, supported_formatters)
|
||||||
-- add linter
|
-- -- add linter
|
||||||
local supported_linters = linter_list_registered(buf_ft)
|
-- local supported_linters = linter_list_registered(buf_ft)
|
||||||
vim.list_extend(buf_client_names, supported_linters)
|
-- vim.list_extend(buf_client_names, supported_linters)
|
||||||
-- decomple
|
-- -- decomple
|
||||||
local unique_client_names = vim.fn.uniq(buf_client_names)
|
-- local unique_client_names = vim.fn.uniq(buf_client_names)
|
||||||
local msg = table.concat(unique_client_names, ", ")
|
-- local msg = table.concat(unique_client_names, ", ")
|
||||||
return msg
|
-- return msg
|
||||||
end,
|
-- end,
|
||||||
--icon = " ",
|
-- --icon = " ",
|
||||||
icon = icons.ui.Gear .. "",
|
-- icon = icons.ui.Gear .. "",
|
||||||
padding = 1,
|
-- padding = 1,
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
local diagnostics = {
|
-- local diagnostics = {
|
||||||
"diagnostics",
|
-- "diagnostics",
|
||||||
sources = { "nvim_diagnostic" },
|
-- sources = { "nvim_diagnostic" },
|
||||||
sections = { "error", "warn" },
|
-- sections = { "error", "warn" },
|
||||||
-- symbols = { error = " ", warn = " " },
|
-- -- symbols = { error = " ", warn = " " },
|
||||||
symbols = {
|
-- symbols = {
|
||||||
error = icons.diagnostics.BoldError .. " ",
|
-- error = icons.diagnostics.BoldError .. " ",
|
||||||
warn = icons.diagnostics.BoldWarning .. " ",
|
-- warn = icons.diagnostics.BoldWarning .. " ",
|
||||||
},
|
-- },
|
||||||
colored = true,
|
-- colored = true,
|
||||||
update_in_insert = false,
|
-- update_in_insert = false,
|
||||||
always_visible = false,
|
-- always_visible = false,
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
local diff = {
|
-- local diff = {
|
||||||
"diff",
|
-- "diff",
|
||||||
colored = true,
|
-- colored = true,
|
||||||
-- symbols = { added = " ", modified = " ", removed = " " }, -- changes diff symbols
|
-- -- symbols = { added = " ", modified = " ", removed = " " }, -- changes diff symbols
|
||||||
symbols = {
|
-- symbols = {
|
||||||
added = icons.git.LineAdded .. " ",
|
-- added = icons.git.LineAdded .. " ",
|
||||||
modified = icons.git.LineModified .. " ",
|
-- modified = icons.git.LineModified .. " ",
|
||||||
removed = icons.git.LineRemoved .. " ",
|
-- removed = icons.git.LineRemoved .. " ",
|
||||||
}, -- changes diff symbols
|
-- }, -- changes diff symbols
|
||||||
cond = hide_in_width,
|
-- cond = hide_in_width,
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
local spaces = function()
|
-- local spaces = function()
|
||||||
-- return " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
-- -- return " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||||
return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
-- return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
local mode = {
|
-- local mode = {
|
||||||
"mode",
|
-- "mode",
|
||||||
padding = 1,
|
-- padding = 1,
|
||||||
separator = { left = " " },
|
-- separator = { left = " " },
|
||||||
-- right_padding = 3,
|
-- -- right_padding = 3,
|
||||||
fmt = function(str)
|
-- fmt = function(str)
|
||||||
return icons.ui.Neovim .. " " .. str
|
-- return icons.ui.Neovim .. " " .. str
|
||||||
end,
|
-- end,
|
||||||
}
|
-- }
|
||||||
local branch = {
|
-- local branch = {
|
||||||
"branch",
|
-- "branch",
|
||||||
padding = 1,
|
-- padding = 1,
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
local get_branch = function()
|
-- local get_branch = function()
|
||||||
if vim.b.gitsigns_head ~= nil then
|
-- if vim.b.gitsigns_head ~= nil then
|
||||||
return icons.git.Branch2 .. " " .. getLeftSubstring(vim.b.gitsigns_head, 6)
|
-- return icons.git.Branch2 .. " " .. getLeftSubstring(vim.b.gitsigns_head, 6)
|
||||||
else
|
-- else
|
||||||
return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t")
|
-- return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t")
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
local lsp_progress = {}
|
-- local lsp_progress = {}
|
||||||
local data_ok, lspprogress = pcall(require, "lsp-progress")
|
-- local data_ok, lspprogress = pcall(require, "lsp-progress")
|
||||||
if data_ok then
|
-- if data_ok then
|
||||||
lsp_progress = lspprogress.progress
|
-- lsp_progress = lspprogress.progress
|
||||||
end
|
-- end
|
||||||
-- stylua: ignore
|
-- -- stylua: ignore
|
||||||
local colors = {
|
-- local colors = {
|
||||||
blue = '#50fa7b',
|
-- blue = '#50fa7b',
|
||||||
cyan = '#f1fa8c',
|
-- cyan = '#f1fa8c',
|
||||||
black = '#1a1b26',
|
-- black = '#1a1b26',
|
||||||
black_transparant = 'none',
|
-- black_transparant = 'none',
|
||||||
white = '#c6c6c6',
|
-- white = '#c6c6c6',
|
||||||
red = "#ff757f",
|
-- red = "#ff757f",
|
||||||
skyblue_1 = '#bd93f9',
|
-- skyblue_1 = '#bd93f9',
|
||||||
grey = '#5f6a8e',
|
-- grey = '#5f6a8e',
|
||||||
yellow = "#ffb86c",
|
-- yellow = "#ffb86c",
|
||||||
fg_gutter = "#3b4261",
|
-- fg_gutter = "#3b4261",
|
||||||
green1 = "#bd93f9",
|
-- green1 = "#bd93f9",
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
-- check config for theme
|
-- -- check config for theme
|
||||||
local set_theme
|
-- local set_theme
|
||||||
local bubbles_theme = {}
|
-- local bubbles_theme = {}
|
||||||
local data_exists, config = pcall(require, "core.config")
|
-- local data_exists, config = pcall(require, "core.config")
|
||||||
if data_exists then
|
-- if data_exists then
|
||||||
if config.colorscheme ~= nil then
|
-- if config.colorscheme ~= nil then
|
||||||
local color = config.colorscheme
|
-- local color = config.colorscheme
|
||||||
switch(color, {
|
-- switch(color, {
|
||||||
["tokyonight"] = function()
|
-- ["tokyonight"] = function()
|
||||||
set_theme = "auto"
|
-- set_theme = "auto"
|
||||||
end,
|
-- end,
|
||||||
["tokyonight-night"] = function()
|
-- ["tokyonight-night"] = function()
|
||||||
set_theme = "auto"
|
-- set_theme = "auto"
|
||||||
end,
|
-- end,
|
||||||
["tokyonight-storm"] = function()
|
-- ["tokyonight-storm"] = function()
|
||||||
set_theme = "auto"
|
-- set_theme = "auto"
|
||||||
end,
|
-- end,
|
||||||
["tokyonight-day"] = function()
|
-- ["tokyonight-day"] = function()
|
||||||
set_theme = "auto"
|
-- set_theme = "auto"
|
||||||
end,
|
-- end,
|
||||||
["tokyonight-moon"] = function()
|
-- ["tokyonight-moon"] = function()
|
||||||
set_theme = "auto"
|
-- set_theme = "auto"
|
||||||
end,
|
-- end,
|
||||||
["dracula"] = function()
|
-- ["dracula"] = function()
|
||||||
local clr = require("dracula").colors()
|
-- local clr = require("dracula").colors()
|
||||||
colors.blue = clr.green
|
-- colors.blue = clr.green
|
||||||
colors.black = clr.black
|
-- colors.black = clr.black
|
||||||
colors.cyan = clr.yellow
|
-- colors.cyan = clr.yellow
|
||||||
set_theme = bubbles_theme
|
-- set_theme = bubbles_theme
|
||||||
end,
|
-- end,
|
||||||
default = function()
|
-- default = function()
|
||||||
set_theme = "auto"
|
-- set_theme = "auto"
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
bubbles_theme = {
|
-- bubbles_theme = {
|
||||||
normal = {
|
-- normal = {
|
||||||
a = { fg = colors.black, bg = colors.skyblue_1 },
|
-- a = { fg = colors.black, bg = colors.skyblue_1 },
|
||||||
b = { fg = colors.white, bg = colors.grey },
|
-- b = { fg = colors.white, bg = colors.grey },
|
||||||
c = { fg = colors.white, bg = colors.black_transparant },
|
-- c = { fg = colors.white, bg = colors.black_transparant },
|
||||||
},
|
-- },
|
||||||
|
--
|
||||||
insert = {
|
-- insert = {
|
||||||
a = { fg = colors.black, bg = colors.blue },
|
-- a = { fg = colors.black, bg = colors.blue },
|
||||||
b = { fg = colors.blue, bg = colors.grey },
|
-- b = { fg = colors.blue, bg = colors.grey },
|
||||||
},
|
-- },
|
||||||
visual = {
|
-- visual = {
|
||||||
a = { fg = colors.black, bg = colors.cyan },
|
-- a = { fg = colors.black, bg = colors.cyan },
|
||||||
b = { fg = colors.cyan, bg = colors.grey },
|
-- b = { fg = colors.cyan, bg = colors.grey },
|
||||||
},
|
-- },
|
||||||
replace = {
|
-- replace = {
|
||||||
a = { bg = colors.red, fg = colors.black },
|
-- a = { bg = colors.red, fg = colors.black },
|
||||||
b = { bg = colors.fg_gutter, fg = colors.red },
|
-- b = { bg = colors.fg_gutter, fg = colors.red },
|
||||||
},
|
-- },
|
||||||
command = {
|
-- command = {
|
||||||
a = { bg = colors.yellow, fg = colors.black },
|
-- a = { bg = colors.yellow, fg = colors.black },
|
||||||
b = { bg = colors.fg_gutter, fg = colors.yellow },
|
-- b = { bg = colors.fg_gutter, fg = colors.yellow },
|
||||||
},
|
-- },
|
||||||
terminal = {
|
-- terminal = {
|
||||||
a = { bg = colors.green1, fg = colors.black },
|
-- a = { bg = colors.green1, fg = colors.black },
|
||||||
b = { bg = colors.fg_gutter, fg = colors.green1 },
|
-- b = { bg = colors.fg_gutter, fg = colors.green1 },
|
||||||
},
|
-- },
|
||||||
inactive = {
|
-- inactive = {
|
||||||
a = { fg = colors.white, bg = colors.black_transparant },
|
-- a = { fg = colors.white, bg = colors.black_transparant },
|
||||||
b = { fg = colors.white, bg = colors.black_transparant },
|
-- b = { fg = colors.white, bg = colors.black_transparant },
|
||||||
c = { fg = colors.black, bg = colors.black_transparant },
|
-- c = { fg = colors.black, bg = colors.black_transparant },
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
if set_theme == "auto" then
|
-- if set_theme == "auto" then
|
||||||
bubbles_theme = vim.fn.fnamemodify("auto", ":t")
|
-- bubbles_theme = vim.fn.fnamemodify("auto", ":t")
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
require("lualine").setup({
|
-- require("lualine").setup({
|
||||||
options = {
|
-- options = {
|
||||||
theme = bubbles_theme,
|
-- theme = bubbles_theme,
|
||||||
-- theme = "auto",
|
-- -- theme = "auto",
|
||||||
component_separators = { left = "", right = "" },
|
-- component_separators = { left = "", right = "" },
|
||||||
section_separators = { left = "", right = "" },
|
-- section_separators = { left = "", right = "" },
|
||||||
disabled_filetypes = {
|
-- disabled_filetypes = {
|
||||||
"TelescopePrompt",
|
-- "TelescopePrompt",
|
||||||
"packer",
|
-- "packer",
|
||||||
"alpha",
|
-- "alpha",
|
||||||
"dashboard",
|
-- "dashboard",
|
||||||
"NvimTree",
|
-- "NvimTree",
|
||||||
"Outline",
|
-- "Outline",
|
||||||
"DressingInput",
|
-- "DressingInput",
|
||||||
"toggleterm",
|
-- "toggleterm",
|
||||||
"lazy",
|
-- "lazy",
|
||||||
"mason",
|
-- "mason",
|
||||||
"neo-tree",
|
-- "neo-tree",
|
||||||
"startuptime",
|
-- "startuptime",
|
||||||
},
|
-- },
|
||||||
always_divide_middle = true,
|
-- always_divide_middle = true,
|
||||||
},
|
-- },
|
||||||
sections = {
|
-- sections = {
|
||||||
lualine_a = {
|
-- lualine_a = {
|
||||||
mode,
|
-- mode,
|
||||||
},
|
-- },
|
||||||
lualine_b = { get_branch },
|
-- lualine_b = { get_branch },
|
||||||
lualine_c = { lsp_info, diagnostics, lsp_progress },
|
-- lualine_c = { lsp_info, diagnostics, lsp_progress },
|
||||||
lualine_x = { diff, spaces, "filetype" },
|
-- lualine_x = { diff, spaces, "filetype" },
|
||||||
lualine_y = { "progress" },
|
-- lualine_y = { "progress" },
|
||||||
lualine_z = {
|
-- lualine_z = {
|
||||||
{ "location", separator = { right = " " }, padding = 1 },
|
-- { "location", separator = { right = " " }, padding = 1 },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
inactive_sections = {
|
-- inactive_sections = {
|
||||||
lualine_a = { "filename" },
|
-- lualine_a = { "filename" },
|
||||||
lualine_b = {},
|
-- lualine_b = {},
|
||||||
lualine_c = {},
|
-- lualine_c = {},
|
||||||
lualine_x = {},
|
-- lualine_x = {},
|
||||||
lualine_y = {},
|
-- lualine_y = {},
|
||||||
lualine_z = { "location" },
|
-- lualine_z = { "location" },
|
||||||
},
|
-- },
|
||||||
tabline = {},
|
-- tabline = {},
|
||||||
extensions = {},
|
-- extensions = {},
|
||||||
})
|
-- })
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|
244
lua/custom/plugins/lualine_onedark.lua
Normal file
244
lua/custom/plugins/lualine_onedark.lua
Normal file
|
@ -0,0 +1,244 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
event = "InsertEnter",
|
||||||
|
config = function()
|
||||||
|
local hide_in_width = function()
|
||||||
|
return vim.fn.winwidth(0) > 80
|
||||||
|
end
|
||||||
|
local icons = require("user.icons")
|
||||||
|
|
||||||
|
local getLeftSubstring = function(word, length)
|
||||||
|
if #word > length then
|
||||||
|
return string.sub(word, 1, length) .. "..."
|
||||||
|
else
|
||||||
|
return word
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- start for lsp
|
||||||
|
local list_registered_providers_names = function(filetype)
|
||||||
|
local s = require("null-ls.sources")
|
||||||
|
local available_sources = s.get_available(filetype)
|
||||||
|
local registered = {}
|
||||||
|
for _, source in ipairs(available_sources) do
|
||||||
|
for method in pairs(source.methods) do
|
||||||
|
registered[method] = registered[method] or {}
|
||||||
|
table.insert(registered[method], source.name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return registered
|
||||||
|
end
|
||||||
|
|
||||||
|
local null_ls = require("null-ls")
|
||||||
|
-- for formatter
|
||||||
|
local list_registered = function(filetype)
|
||||||
|
local method = null_ls.methods.FORMATTING
|
||||||
|
local registered_providers = list_registered_providers_names(filetype)
|
||||||
|
return registered_providers[method] or {}
|
||||||
|
end
|
||||||
|
|
||||||
|
--- for linter
|
||||||
|
local alternative_methods = {
|
||||||
|
null_ls.methods.DIAGNOSTICS,
|
||||||
|
null_ls.methods.DIAGNOSTICS_ON_OPEN,
|
||||||
|
null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
||||||
|
}
|
||||||
|
|
||||||
|
local linter_list_registered = function(filetype)
|
||||||
|
local registered_providers = list_registered_providers_names(filetype)
|
||||||
|
local providers_for_methods = vim.tbl_flatten(vim.tbl_map(function(m)
|
||||||
|
return registered_providers[m] or {}
|
||||||
|
end, alternative_methods))
|
||||||
|
|
||||||
|
return providers_for_methods
|
||||||
|
end
|
||||||
|
-- end for lsp
|
||||||
|
|
||||||
|
local lsp_info = {
|
||||||
|
function()
|
||||||
|
local msg = "LS Inactive"
|
||||||
|
local buf_ft = vim.bo.filetype
|
||||||
|
local clients = vim.lsp.get_active_clients()
|
||||||
|
-- start register
|
||||||
|
local buf_clients = vim.lsp.buf_get_clients()
|
||||||
|
local buf_client_names = {}
|
||||||
|
if next(buf_clients) == nil then
|
||||||
|
-- TODO: clean up this if statement
|
||||||
|
if type(msg) == "boolean" or #msg == 0 then
|
||||||
|
return "LS Inactive"
|
||||||
|
end
|
||||||
|
return msg
|
||||||
|
end
|
||||||
|
-- add client
|
||||||
|
for _, client in pairs(buf_clients) do
|
||||||
|
if client.name ~= "null-ls" and client.name ~= "copilot" then
|
||||||
|
table.insert(buf_client_names, client.name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- add formatter
|
||||||
|
local supported_formatters = list_registered(buf_ft)
|
||||||
|
vim.list_extend(buf_client_names, supported_formatters)
|
||||||
|
-- add linter
|
||||||
|
local supported_linters = linter_list_registered(buf_ft)
|
||||||
|
vim.list_extend(buf_client_names, supported_linters)
|
||||||
|
-- decomple
|
||||||
|
local unique_client_names = vim.fn.uniq(buf_client_names)
|
||||||
|
local msg = table.concat(unique_client_names, ", ")
|
||||||
|
return msg
|
||||||
|
end,
|
||||||
|
--icon = " ",
|
||||||
|
icon = icons.ui.Gear .. "",
|
||||||
|
padding = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
local diagnostics = {
|
||||||
|
"diagnostics",
|
||||||
|
sources = { "nvim_diagnostic" },
|
||||||
|
sections = { "error", "warn" },
|
||||||
|
-- symbols = { error = " ", warn = " " },
|
||||||
|
symbols = {
|
||||||
|
error = icons.diagnostics.BoldError .. " ",
|
||||||
|
warn = icons.diagnostics.BoldWarning .. " ",
|
||||||
|
},
|
||||||
|
colored = true,
|
||||||
|
update_in_insert = false,
|
||||||
|
always_visible = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
local diff = {
|
||||||
|
"diff",
|
||||||
|
colored = true,
|
||||||
|
-- symbols = { added = " ", modified = " ", removed = " " }, -- changes diff symbols
|
||||||
|
symbols = {
|
||||||
|
added = icons.git.LineAdded .. " ",
|
||||||
|
modified = icons.git.LineModified .. " ",
|
||||||
|
removed = icons.git.LineRemoved .. " ",
|
||||||
|
}, -- changes diff symbols
|
||||||
|
cond = hide_in_width,
|
||||||
|
}
|
||||||
|
|
||||||
|
local spaces = function()
|
||||||
|
-- return " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||||
|
return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||||
|
end
|
||||||
|
|
||||||
|
local mode = {
|
||||||
|
"mode",
|
||||||
|
padding = 1,
|
||||||
|
separator = { left = " " },
|
||||||
|
-- right_padding = 3,
|
||||||
|
fmt = function(str)
|
||||||
|
return icons.ui.Neovim .. " " .. str
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
local branch = {
|
||||||
|
"branch",
|
||||||
|
padding = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
local get_branch = function()
|
||||||
|
if vim.b.gitsigns_head ~= nil then
|
||||||
|
return icons.git.Branch2 .. " " .. getLeftSubstring(vim.b.gitsigns_head, 6)
|
||||||
|
else
|
||||||
|
return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local lsp_progress = {}
|
||||||
|
local data_ok, lspprogress = pcall(require, "lsp-progress")
|
||||||
|
if data_ok then
|
||||||
|
lsp_progress = lspprogress.progress
|
||||||
|
end
|
||||||
|
-- stylua: ignore
|
||||||
|
local is_transparat=true
|
||||||
|
local colors = require("onedarkpro.helpers").get_colors("onedark")
|
||||||
|
|
||||||
|
local onedark = {
|
||||||
|
normal = {
|
||||||
|
a = { bg = colors.green, fg = colors.bg },
|
||||||
|
b = { bg = colors.fg_gutter, fg = colors.green },
|
||||||
|
c = {
|
||||||
|
bg = is_transparat and colors.none or colors.bg_statusline,
|
||||||
|
fg = colors.fg,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
insert = {
|
||||||
|
a = { bg = colors.blue, fg = colors.bg },
|
||||||
|
b = { bg = colors.fg_gutter, fg = colors.blue },
|
||||||
|
},
|
||||||
|
visual = {
|
||||||
|
a = { bg = colors.yellow, fg = colors.bg },
|
||||||
|
b = { bg = colors.fg_gutter, fg = colors.yellow },
|
||||||
|
},
|
||||||
|
replace = {
|
||||||
|
a = { bg = colors.red, fg = colors.bg },
|
||||||
|
b = { bg = colors.fg_gutter, fg = colors.red },
|
||||||
|
},
|
||||||
|
command = {
|
||||||
|
a = { bg = colors.purple, fg = colors.bg },
|
||||||
|
b = { bg = colors.fg_gutter, fg = colors.purple },
|
||||||
|
},
|
||||||
|
terminal = {
|
||||||
|
a = { bg = colors.cyan, fg = colors.bg },
|
||||||
|
b = { bg = colors.fg_gutter, fg = colors.cyan },
|
||||||
|
},
|
||||||
|
inactive = {
|
||||||
|
a = { bg = colors.bg, fg = colors.blue },
|
||||||
|
b = { bg = colors.bg, fg = colors.fg_gutter_inactive, gui = "bold" },
|
||||||
|
c = {
|
||||||
|
bg = is_transparat and colors.none or colors.bg,
|
||||||
|
fg = colors.fg_gutter_inactive,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
require("lualine").setup({
|
||||||
|
options = {
|
||||||
|
theme = onedark,
|
||||||
|
-- theme = "auto",
|
||||||
|
component_separators = { left = "", right = "" },
|
||||||
|
section_separators = { left = "", right = "" },
|
||||||
|
disabled_filetypes = {
|
||||||
|
"TelescopePrompt",
|
||||||
|
"packer",
|
||||||
|
"alpha",
|
||||||
|
"dashboard",
|
||||||
|
"NvimTree",
|
||||||
|
"Outline",
|
||||||
|
"DressingInput",
|
||||||
|
"toggleterm",
|
||||||
|
"lazy",
|
||||||
|
"mason",
|
||||||
|
"neo-tree",
|
||||||
|
"startuptime",
|
||||||
|
},
|
||||||
|
always_divide_middle = true,
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_a = {
|
||||||
|
mode,
|
||||||
|
},
|
||||||
|
lualine_b = { get_branch },
|
||||||
|
lualine_c = { lsp_info, diagnostics, lsp_progress },
|
||||||
|
lualine_x = { diff, spaces, "filetype" },
|
||||||
|
lualine_y = { "progress" },
|
||||||
|
lualine_z = {
|
||||||
|
{ "location", separator = { right = " " }, padding = 1 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
inactive_sections = {
|
||||||
|
lualine_a = { "filename" },
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = {},
|
||||||
|
lualine_x = {},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = { "location" },
|
||||||
|
},
|
||||||
|
tabline = {},
|
||||||
|
extensions = {},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -41,7 +41,7 @@ return {
|
||||||
-- javascript = false,
|
-- javascript = false,
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
cursorline = false, -- Use cursorline highlighting?
|
cursorline = true, -- Use cursorline highlighting?
|
||||||
transparency = is_transparent, -- Use a transparent background?
|
transparency = is_transparent, -- Use a transparent background?
|
||||||
terminal_colors = true, -- Use the theme's colors for Neovim's :terminal?
|
terminal_colors = true, -- Use the theme's colors for Neovim's :terminal?
|
||||||
lualine_transparency = is_transparent, -- Center bar transparency?
|
lualine_transparency = is_transparent, -- Center bar transparency?
|
||||||
|
@ -82,13 +82,14 @@ return {
|
||||||
["@tag.javascript"] = { fg = "${red}" },
|
["@tag.javascript"] = { fg = "${red}" },
|
||||||
["@tag.attribute"] = { fg = "${orange}", style = "italic" },
|
["@tag.attribute"] = { fg = "${orange}", style = "italic" },
|
||||||
["@constructor.javascript"] = { fg = "${red}" },
|
["@constructor.javascript"] = { fg = "${red}" },
|
||||||
["@variable"] = { fg = "${fg}", style = "NONE" }, -- various variable names
|
-- ["@variable"] = { fg = "${fg}", style = "NONE" }, -- various variable names
|
||||||
["@variable.builtin"] = { fg = "${red}", style = "NONE" },
|
["@variable.builtin"] = { fg = "${red}", style = "NONE" },
|
||||||
["@variable.member"] = "${cyan}",
|
["@variable.member"] = "${cyan}",
|
||||||
["@variable.parameter"] = "${red}",
|
["@variable.parameter"] = "${red}",
|
||||||
-- ["@property.javascript"] = { fg = "${cyan}" }, -- similar to `@field`
|
-- ["@property.javascript"] = { fg = "${cyan}" }, -- similar to `@field`
|
||||||
["@lsp.type.parameter"] = { fg = "${fg}" },
|
["@lsp.type.parameter"] = { fg = "${fg}" },
|
||||||
["@field.lua"] = { fg = "${gray}" },
|
["@lsp.type.property.lua"] = { fg = "${red}" },
|
||||||
|
["@lsp.type.variable.lua"] = { fg = "${fg}" },
|
||||||
NvimTreeGitDirty = { fg = "${yellow}" },
|
NvimTreeGitDirty = { fg = "${yellow}" },
|
||||||
Pmenu = { fg = "${fg}", bg = "${bg}" },
|
Pmenu = { fg = "${fg}", bg = "${bg}" },
|
||||||
PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar.
|
PmenuThumb = { bg = "${gray}" }, -- Popup menu: Thumb of the scrollbar.
|
||||||
|
|
|
@ -17,14 +17,14 @@ return {
|
||||||
-- event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
event = { "BufRead", "BufNewFile" },
|
event = { "BufRead", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
require("user.lualine")
|
require("user.lualine_cfg")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- for show icon
|
-- for show icon
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-web-devicons",
|
"kyazdani42/nvim-web-devicons",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
dependencies = { "DaikyXendo/nvim-material-icon" },
|
dependencies = { "pojokcodeid/nvim-material-icon" },
|
||||||
-- event = "BufRead",
|
-- event = "BufRead",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.webdevicons")
|
require("user.webdevicons")
|
||||||
|
|
|
@ -207,8 +207,8 @@ nvim_tree.setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
notify = {
|
notify = {
|
||||||
-- threshold = vim.log.levels.INFO,
|
threshold = vim.log.levels.INFO,
|
||||||
threshold = vim.log.levels.ERROR,
|
-- threshold = vim.log.levels.ERROR,
|
||||||
},
|
},
|
||||||
log = {
|
log = {
|
||||||
enable = false,
|
enable = false,
|
||||||
|
|
|
@ -8,502 +8,7 @@ if not material_icon_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local prettier_icon = ""
|
|
||||||
material_icon.setup({
|
|
||||||
override = {
|
|
||||||
["mjs"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#f2c55c",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "Mjs",
|
|
||||||
},
|
|
||||||
["js"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#f2c55c",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "javascript",
|
|
||||||
},
|
|
||||||
["ts"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#548af7",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "ts",
|
|
||||||
},
|
|
||||||
["jsx"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#61dafb",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "jsx",
|
|
||||||
},
|
|
||||||
["tsx"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#3699ff",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "Tsx",
|
|
||||||
},
|
|
||||||
["svg"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#FDB03A",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "svg",
|
|
||||||
},
|
|
||||||
["prisma"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#0FBFCF",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "prisma",
|
|
||||||
},
|
|
||||||
["json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#f16421",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "json",
|
|
||||||
},
|
|
||||||
["map"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#748e54",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "map",
|
|
||||||
},
|
|
||||||
["svelte"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "svelte",
|
|
||||||
},
|
|
||||||
["yaml"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "yaml",
|
|
||||||
},
|
|
||||||
["vsix"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#30A2FF",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "vsix",
|
|
||||||
},
|
|
||||||
["class"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#1e88e5",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "JavaClass",
|
|
||||||
},
|
|
||||||
["java"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "JavaFile",
|
|
||||||
},
|
|
||||||
["gradle"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "GradleFile",
|
|
||||||
},
|
|
||||||
["mod"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#C5362B",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gomod",
|
|
||||||
},
|
|
||||||
["blade.php"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "bladephp",
|
|
||||||
},
|
|
||||||
["7z"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "7z",
|
|
||||||
},
|
|
||||||
["zip"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "zip",
|
|
||||||
},
|
|
||||||
["rar"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "rar",
|
|
||||||
},
|
|
||||||
["cfm"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#507F89",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "cfm",
|
|
||||||
},
|
|
||||||
["cfc"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#507F89",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "cfc",
|
|
||||||
},
|
|
||||||
["png"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#3574f0",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "Png",
|
|
||||||
},
|
|
||||||
["jpg"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#3574f0",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "jpg",
|
|
||||||
},
|
|
||||||
["jpeg"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#88C057",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "jpeg",
|
|
||||||
},
|
|
||||||
["csv"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#57965c",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "csv",
|
|
||||||
},
|
|
||||||
["sql"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#b589ec",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "sqlfile",
|
|
||||||
},
|
|
||||||
["php"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#b589ec",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "phpfile",
|
|
||||||
},
|
|
||||||
["mp4"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#FC6411",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "mp4file",
|
|
||||||
},
|
|
||||||
["md"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#42a5f5",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "markdown",
|
|
||||||
},
|
|
||||||
["sh"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "README_file",
|
|
||||||
},
|
|
||||||
["pdf"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "pdffile",
|
|
||||||
},
|
|
||||||
["xlsx"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#349C42",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "xlsxfile",
|
|
||||||
},
|
|
||||||
["xls"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#349C42",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "xlsfile",
|
|
||||||
},
|
|
||||||
-- ["go"] = {
|
|
||||||
-- icon = "",
|
|
||||||
-- color = "#0FBFCF",
|
|
||||||
-- cterm_color = "220",
|
|
||||||
-- name = "go",
|
|
||||||
-- },
|
|
||||||
},
|
|
||||||
color_icons = true,
|
|
||||||
default = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
web_devicons.setup({
|
web_devicons.setup({
|
||||||
override = material_icon.get_icons(),
|
override = material_icon.get_icons(),
|
||||||
override_by_filename = {
|
override_by_filename = {},
|
||||||
["artisan"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ef510b",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "artisan",
|
|
||||||
},
|
|
||||||
["vite.config.ts"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ffab00",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "viteconfigts",
|
|
||||||
},
|
|
||||||
["vite.config.js"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ffab00",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "viteconfigjs",
|
|
||||||
},
|
|
||||||
[".releaserc"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "releaserc",
|
|
||||||
},
|
|
||||||
[".profile"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "profiledata",
|
|
||||||
},
|
|
||||||
[".eslint_d"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#4930bd",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "eslintd",
|
|
||||||
},
|
|
||||||
[".eslintrc.cjs"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#4930bd",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "eslintrccjs",
|
|
||||||
},
|
|
||||||
[".htaccess"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#C63C17",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "htaccess",
|
|
||||||
},
|
|
||||||
["pom.xml"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#C63C17",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "pomxml",
|
|
||||||
},
|
|
||||||
[".huskyrc"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ffffff",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "huskyrc",
|
|
||||||
},
|
|
||||||
[".prettierrc"] = {
|
|
||||||
icon = prettier_icon,
|
|
||||||
color = "#ea5e5e",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "prettierrc",
|
|
||||||
},
|
|
||||||
[".prettierrc.json"] = {
|
|
||||||
icon = prettier_icon,
|
|
||||||
color = "#ea5e5e",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "prettierrcjson",
|
|
||||||
},
|
|
||||||
[".prettierd"] = {
|
|
||||||
icon = prettier_icon,
|
|
||||||
color = "#ea5e5e",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "prettierd",
|
|
||||||
},
|
|
||||||
[".vscodeignore"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#30A2FF",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "vscodeignore",
|
|
||||||
},
|
|
||||||
[".vsixmanifest"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#30A2FF",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "vsixmanifest",
|
|
||||||
},
|
|
||||||
[".prettierignore"] = {
|
|
||||||
icon = prettier_icon,
|
|
||||||
color = "#ea5e5e",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "prettierignore",
|
|
||||||
},
|
|
||||||
[".sequelizerc"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#397883",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "sequelizerc",
|
|
||||||
},
|
|
||||||
["pre-commit"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#75e4b3",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "pre",
|
|
||||||
},
|
|
||||||
["yarn.lock"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ea5e5e",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "yarnlock",
|
|
||||||
},
|
|
||||||
["yarn-error.log"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#3d85c6",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "yarnerror",
|
|
||||||
},
|
|
||||||
[".eslintrc.json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#4746a8",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "eslintrc",
|
|
||||||
},
|
|
||||||
[".eslintrc.js"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#4746a8",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "eslintrcjs",
|
|
||||||
},
|
|
||||||
[".eslintignore"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#4746a8",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "eslintignore",
|
|
||||||
},
|
|
||||||
["jest.config.js"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#e37575",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "jestconfig",
|
|
||||||
},
|
|
||||||
["cname"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#e37575",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "cname",
|
|
||||||
},
|
|
||||||
[".nvmrc"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#E8274B",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "nvmrc",
|
|
||||||
},
|
|
||||||
[".yarnrc"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#3d85c6",
|
|
||||||
cterm_color = "240",
|
|
||||||
name = "yarnrc",
|
|
||||||
},
|
|
||||||
[".git-blame-ignore-revs"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#F14C28",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gitblameignorerevs",
|
|
||||||
},
|
|
||||||
[".gitmodules"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#0c343d",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gitmodules",
|
|
||||||
},
|
|
||||||
[".mailmap"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#a0d0d0",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "mailmap",
|
|
||||||
},
|
|
||||||
[".vscode-test.js"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#206ba3",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "vscodetest",
|
|
||||||
},
|
|
||||||
[".mention-bot"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#ffffff",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "mentionbot",
|
|
||||||
},
|
|
||||||
[".project"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#5881b1",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "project",
|
|
||||||
},
|
|
||||||
["gradlew"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gradlewFile",
|
|
||||||
},
|
|
||||||
[".classpath"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#9C9C9C",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gradlewFile",
|
|
||||||
},
|
|
||||||
["dockerfile-development"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#0087c9",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gradlewFile-development",
|
|
||||||
},
|
|
||||||
["dockerfile-staging"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#0087c9",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gradlewFile-staging",
|
|
||||||
},
|
|
||||||
["nodemon.json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#76d04b",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "nodemonjson",
|
|
||||||
},
|
|
||||||
["webpack.config.js"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#8ED6FB",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "webpackconfigjs",
|
|
||||||
},
|
|
||||||
["package.json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#8ED6FB",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "packagejson",
|
|
||||||
},
|
|
||||||
["package-lock.json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#cc0000",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "packagelockjson",
|
|
||||||
},
|
|
||||||
[".gitignore"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#8ED6FB",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gitignore",
|
|
||||||
},
|
|
||||||
["tsconfig.json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#519aba",
|
|
||||||
cterm_color = "74",
|
|
||||||
name = "TSConfig",
|
|
||||||
},
|
|
||||||
["jsconfig.json"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#f2c55c",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "JSConfig",
|
|
||||||
},
|
|
||||||
[".gitlab-ci.yml"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#F14C28",
|
|
||||||
cterm_color = "220",
|
|
||||||
name = "gitlabciyaml",
|
|
||||||
},
|
|
||||||
[".env_example"] = {
|
|
||||||
icon = "",
|
|
||||||
color = "#faf743",
|
|
||||||
cterm_color = "227",
|
|
||||||
name = "Envexample",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
1642
lua/user/webdevicons_backup.lua
Normal file
1642
lua/user/webdevicons_backup.lua
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue