Change back to a working config #1

Open
th3r00t wants to merge 16 commits from New-Master into master
Showing only changes of commit 20165cfee1 - Show all commits

121
init.lua
View File

@@ -15,35 +15,97 @@ require("autocmds") -- ./lua/autocmds.lua
require("diagnostics") -- ./lua/diagnostics.lua require("diagnostics") -- ./lua/diagnostics.lua
require('telescope_configuration') -- ./lua/telescope_configuration.lua require('telescope_configuration') -- ./lua/telescope_configuration.lua
-- if host == "xps13" then local function cyberdream()
-- require('tokyonight').setup({ require("cyberdream").setup({
-- style = "moon", -- "storm", "moon", "day", "night" -- Set light or dark variant
-- transparent = false, -- Enable transparent background variant = "default", -- use "light" for the light variant. Also accepts "auto" to set dark or light colors based on the current value of `vim.o.background`
-- terminal_colors = true, -- Enable terminal colors -- Enable transparent background
-- styles = { transparent = true,
-- comments = { italic = true }, -- Italic comments -- Reduce the overall saturation of colours for a more muted look
-- keywords = { italic = true }, -- Italic keywords saturation = 1, -- accepts a value between 0 and 1. 0 will be fully desaturated (greyscale) and 1 will be the full color (default)
-- functions = { bold = true }, -- Bold functions -- Enable italics comments
-- variables = {}, -- No special style for variables italic_comments = true,
-- sidebars = "dark", -- Dark sidebars -- Replace all fillchars with ' ' for the ultimate clean look
-- floats = "dark", -- Dark floating windows hide_fillchars = false,
-- }, -- Apply a modern borderless look to pickers like Telescope, Snacks Picker & Fzf-Lua
-- }) borderless_pickers = true,
-- elseif host == "Titan" then -- Set terminal colors used in `:terminal`
-- require('tokyonight').setup({ terminal_colors = true,
-- style = "storm", -- "storm", "moon", "day", "night" -- Improve start up time by caching highlights. Generate cache with :CyberdreamBuildCache and clear with :CyberdreamClearCache
-- transparent = false, -- Enable transparent background cache = false,
-- terminal_colors = true, -- Enable terminal colors -- Override highlight groups with your own colour values
-- styles = { highlights = {
-- comments = { italic = true }, -- Italic comments -- Highlight groups to override, adding new groups is also possible
-- keywords = { italic = true }, -- Italic keywords -- See `:h highlight-groups` for a list of highlight groups or run `:hi` to see all groups and their current values
-- functions = { bold = true }, -- Bold functions -- Example:
-- variables = {}, -- No special style for variables Comment = { fg = "#696969", bg = "NONE", italic = true },
-- sidebars = "dark", -- Dark sidebars -- More examples can be found in `lua/cyberdream/extensions/*.lua`
-- floats = "dark", -- Dark floating windows },
-- }, -- Override a highlight group entirely using the built-in colour palette
-- }) overrides = function(colors) -- NOTE: This function nullifies the `highlights` option
-- end -- Example:
return {
Comment = { fg = colors.green, bg = "NONE", italic = true },
["@property"] = { fg = colors.magenta, bold = true },
}
end,
-- Override colors
colors = {
-- For a list of colors see `lua/cyberdream/colours.lua`
-- Override colors for both light and dark variants
bg = "#000000",
green = "#00ff00",
-- If you want to override colors for light or dark variants only, use the following format:
dark = {
magenta = "#ff00ff",
fg = "#eeeeee",
},
light = {
red = "#ff5c57",
cyan = "#5ef1ff",
},
},
-- Disable or enable colorscheme extensions
-- extensions = {
-- telescope = true,
-- notify = true,
-- mini = true,
-- }
})
end
if host == "xps13" then
cyberdream()
-- require('tokyonight').setup({
-- style = "moon", -- "storm", "moon", "day", "night"
-- transparent = false, -- Enable transparent background
-- terminal_colors = true, -- Enable terminal colors
-- styles = {
-- comments = { italic = true }, -- Italic comments
-- keywords = { italic = true }, -- Italic keywords
-- functions = { bold = true }, -- Bold functions
-- variables = {}, -- No special style for variables
-- sidebars = "dark", -- Dark sidebars
-- floats = "dark", -- Dark floating windows
-- },
-- })
-- })
elseif host == "Titan" then
cyberdream()
-- require('tokyonight').setup({
-- style = "storm", -- "storm", "moon", "day", "night"
-- transparent = false, -- Enable transparent background
-- terminal_colors = true, -- Enable terminal colors
-- styles = {
-- comments = { italic = true }, -- Italic comments
-- keywords = { italic = true }, -- Italic keywords
-- functions = { bold = true }, -- Bold functions
-- variables = {}, -- No special style for variables
-- sidebars = "dark", -- Dark sidebars
-- floats = "dark", -- Dark floating windows
-- },
-- })
end
local function is_linux_console() local function is_linux_console()
return vim.env.TERM == "linux" return vim.env.TERM == "linux"
@@ -55,6 +117,7 @@ local function want_truecolor()
or ((vim.env.COLORTERM or ""):lower():find("truecolor") ~= nil) or ((vim.env.COLORTERM or ""):lower():find("truecolor") ~= nil)
end end
local function set_colorscheme() local function set_colorscheme()
if want_truecolor() then if want_truecolor() then
vim.o.termguicolors = true vim.o.termguicolors = true