astro, presence, smt else

This commit is contained in:
Djkato 2023-07-11 15:21:37 +02:00
parent 59b12098bd
commit a0de5b4d5c
4 changed files with 103 additions and 2 deletions

View file

@ -1,3 +1,59 @@
return { -- this table overrides highlights in all themes -- this table overrides highlights in all themes
-- Normal = { bg = "#000000" }, return {
-- Normal
Normal = { bg = "none" },
NormalFloat = { bg = "none" },
NormalNC = { bg = "none" },
FloatBorder = { bg = "none" },
-- WinBar
WinBar = { bg = "none" },
WinBarNC = { bg = "none" },
WhichKeyFloat = { bg = "none" },
-- Telescope
TelescopeBorder = { bg = "none" },
TelescopeNormal = { bg = "none" },
-- Diagnosis
DiagnosticVirtualTextHint = { fg = "#E0E1E4", bg = "none" },
DiagnosticVirtualTextWarn = { fg = "#e0af68", bg = "none" },
DiagnosticVirtualTextInfo = { fg = "#9ece6a", bg = "none" },
DiagnosticVirtualTextError = { fg = "#c53b53", bg = "none" },
-- NeoTree
NeoTreeNormal = { bg = "none" },
NeoTreeNormalNC = { bg = "none" },
-- StatusLine
StatusLine = { bg = "none" },
StatusLineNC = { bg = "none" },
StatusLineTerm = { bg = "none" },
StatusLineTermNC = { bg = "none" },
-- QuickFixLine
QuickFixLine = { bg = "none" },
-- TabLine
TabLine = { bg = "none" },
TabLineSel = { bg = "none" },
TabLineFill = { bg = "none" },
-- Cursor
CursorLineNr = { bg = "none" },
CursorLine = { bg = "none" },
ColorColumn = { bg = "none" },
-- Search
Search = { fg = 'red' },
IncSearch = { fg = 'red' },
-- Pmenu
Pmenu = { bg = "none" },
PmenuSel = { bg = "none" },
PmenuSbar = { bg = "none" },
PmenuThumb = { bg = "none" },
NotifyINFOBody = { bg = "NONE" },
NotifyWARNBody = { bg = "NONE" },
NotifyERRORBody = { bg = "NONE" },
NotifyDEBUGBody = { bg = "NONE" },
NotifyTRACEBody = { bg = "NONE" },
NotifyINFOBorder = { bg = "NONE" },
NotifyWARNBorder = { bg = "NONE" },
NotifyERRORBorder = { bg = "NONE" },
NotifyDEBUGBorder = { bg = "NONE" },
NotifyTRACEBorder = { bg = "NONE" },
NotifyBackground = { bg = "#000000" },
} }
-- https://github.com/folke/tokyonight.nvim/blob/467d889ba82a74e26821c812aa8e70d7dff04c6c/lua/tokyonight/theme.lua

7
plugins/my_keybinds.lua Normal file
View file

@ -0,0 +1,7 @@
-- return {
-- "nvim-cmp",
-- opts = function(_, opt)
-- cmp = require "cmp",
-- opt.mapping["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" })
-- end,
-- }

27
plugins/presence_nvim.lua Normal file
View file

@ -0,0 +1,27 @@
-- The setup config table shows all available config options with their default values:
return {
"andweeb/presence.nvim",
config = function()
require("presence").setup({
-- General options
neovim_image_text = "How do I exit Neovim 😭?", -- Text displayed when hovered over the Neovim image
main_image = "file", -- Main image display (either "neovim" or "file")
client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
log_level = "warn", -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
-- debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
enable_line_number = false, -- Displays the current line number instead of the current project
-- blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
--file_assets = {}, -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
show_time = true, -- Show the timer
editing_text = "Editing %s", -- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
file_explorer_text = "Browsing %s", -- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
git_commit_text = "Committing changes", -- Format string rendered when committing changes in git (either string or function(filename: string): string)
plugin_manager_text = "Managing plugins", -- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
reading_text = "Reading %s", -- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
workspace_text = "Working on %s", -- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
line_number_text = "Line %s out of %s", -- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
})
end
}

11
plugins/vim-astro.lua Normal file
View file

@ -0,0 +1,11 @@
return {
{
"wuelnerdotexe/vim-astro",
ft = "astro",
init = function()
-- Astro configuration variables.
vim.g.astro_typescript = "enable"
vim.g.astro_stylus = "disable"
end,
},
}