From f5bf6f7953aead72186ac0ba5c8ae603d7f3c9f1 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Mon, 30 Sep 2024 00:57:55 +0200 Subject: [PATCH] Cleaning. --- config/nvim/lua/plugins/init.lua | 37 +++++++------------------------- config/omp/omp.toml | 8 +++---- config/zsh/.zshrc | 6 +----- 3 files changed, 12 insertions(+), 39 deletions(-) diff --git a/config/nvim/lua/plugins/init.lua b/config/nvim/lua/plugins/init.lua index a552ee0..b3c5aea 100644 --- a/config/nvim/lua/plugins/init.lua +++ b/config/nvim/lua/plugins/init.lua @@ -1,10 +1,3 @@ ---local function set_theme(name) --- local cur_theme = require('nvconfig').ui.theme --- require("nvchad.utils").replace_word(cur_theme, name) --- require('nvconfig').ui.theme = name --- require('base46').load_all_highlights() ---end - return { { "stevearc/conform.nvim", @@ -14,15 +7,6 @@ return { end, }, - -- These are some examples, uncomment them if you want to see them work! - -- { - -- "neovim/nvim-lspconfig", - -- config = function() - -- require("nvchad.configs.lspconfig").defaults() - -- require "configs.lspconfig" - -- end, - -- }, - { "nvim-treesitter/nvim-treesitter", opts = { @@ -38,19 +22,14 @@ return { }, }, --- { --- "f-person/auto-dark-mode.nvim", --- event = 'VeryLazy', --- config = { --- update_interval = 1000, --- set_dark_mode = function() --- set_theme('monekai') --- end, --- set_light_mode = function() --- set_theme('ayu_light') --- end, --- } --- } + -- These are some examples, uncomment them if you want to see them work! + -- { + -- "neovim/nvim-lspconfig", + -- config = function() + -- require("nvchad.configs.lspconfig").defaults() + -- require "configs.lspconfig" + -- end, + -- }, -- Install a plugin -- { diff --git a/config/omp/omp.toml b/config/omp/omp.toml index 3216a82..ae6dcf2 100644 --- a/config/omp/omp.toml +++ b/config/omp/omp.toml @@ -24,7 +24,7 @@ alignment = 'left' style = 'plain' background = 'transparent' foreground_templates = [ - "{{ if .Root }}196{{ end }}", + "{{ if .Root }}196{{ else }}246{{ end }}" ] template = '{{ if or (.SSHSession) (.Root) }}{{ .UserName }}@{{ .HostName }} {{ end }}' @@ -55,16 +55,14 @@ alignment = 'left' style = 'plain' background = 'transparent' foreground_templates = [ - '{{ if eq .Code 0 }}76{{ end }}', - '{{ if gt .Code 0 }}196{{ end }}', + '{{ if eq .Code 0 }}76{{ else }}196{{ end }}' ] template = '❯' [transient_prompt] background = 'transparent' foreground_templates = [ - '{{ if eq .Code 0 }}76{{ end }}', - '{{ if gt .Code 0 }}196{{ end }}', + '{{ if eq .Code 0 }}76{{ else }}196{{ end }}' ] template = '❯ ' diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index da73ff8..df8f98b 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -36,11 +36,7 @@ fpath=(~/.local/git/zsh_modules/wd $fpath) # theme and colors if [[ $(command -v vivid) ]]; then - if [[ "${macos_interface_style}" = "Dark" ]]; then - export LS_COLORS=$(vivid generate molokai) - else - export LS_COLORS=$(vivid generate ayu) - fi + export LS_COLORS=$(vivid generate molokai) else unset LS_COLORS fi