Browse Source

feat: remove noice and switch to tokyo-night

master
Tovi Jaeschke-Rogers 3 months ago
parent
commit
586f89ba76
10 changed files with 140 additions and 150 deletions
  1. +1
    -1
      .config/alacritty/alacritty.toml
  2. +29
    -0
      .config/alacritty/themes/tokyo-night.toml
  3. +2
    -1
      .config/aliasrc
  4. +13
    -2
      .config/nvim/lua/tovi/plugins/colorscheme.lua
  5. +1
    -0
      .config/nvim/lua/tovi/plugins/linting.lua
  6. +2
    -1
      .config/nvim/lua/tovi/plugins/lualine.lua
  7. +0
    -55
      .config/nvim/lua/tovi/plugins/noice.lua
  8. +84
    -83
      .config/nvim/lua/tovi/plugins/nvim-cmp.lua
  9. +5
    -6
      .tmux.conf
  10. +3
    -1
      .zshrc

+ 1
- 1
.config/alacritty/alacritty.toml View File

@ -1,5 +1,5 @@
import = [ import = [
"~/.config/alacritty/themes/kanagawa_wave.toml"
"~/.config/alacritty/themes/tokyo-night.toml"
] ]
[env] [env]


+ 29
- 0
.config/alacritty/themes/tokyo-night.toml View File

@ -0,0 +1,29 @@
# Colors (Tokyo Night)
# Source https//github.com/zatchheems/tokyo-night-alacritty-theme
# Default colors
[colors.primary]
background = '#1a1b26'
foreground = '#a9b1d6'
# Normal colors
[colors.normal]
black = '#32344a'
red = '#f7768e'
green = '#9ece6a'
yellow = '#e0af68'
blue = '#7aa2f7'
magenta = '#ad8ee6'
cyan = '#449dab'
white = '#787c99'
# Bright colors
[colors.bright]
black = '#444b6a'
red = '#ff7a93'
green = '#b9f27c'
yellow = '#ff9e64'
blue = '#7da6ff'
magenta = '#bb9af7'
cyan = '#0db9d7'
white = '#acb0d0'

+ 2
- 1
.config/aliasrc View File

@ -11,7 +11,6 @@ alias va='nvim ~/.config/aliasrc && source ~/.zshrc'
alias sz='source ~/.zshrc' alias sz='source ~/.zshrc'
alias c="xclip -selection clipboard" alias c="xclip -selection clipboard"
alias v="xclip -selection clipboard -o" alias v="xclip -selection clipboard -o"
alias lf="lfcd"
alias ducks='du -cks * | sort -rn | head' alias ducks='du -cks * | sort -rn | head'
# Docker # Docker
@ -48,3 +47,5 @@ alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"
alias jack-subscription-artisan="dce subscription-fpm ./artisan" alias jack-subscription-artisan="dce subscription-fpm ./artisan"
alias jack-subscription-paratest="dce subscription-fpm ./test" alias jack-subscription-paratest="dce subscription-fpm ./test"
alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit" alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit"
alias fd="fdfind"

+ 13
- 2
.config/nvim/lua/tovi/plugins/colorscheme.lua View File

@ -53,9 +53,10 @@ return {
}, },
}) })
-- vim.cmd("colorscheme catppuccin")
vim.cmd("colorscheme catppuccin")
end end
}, },
{ {
"ellisonleao/gruvbox.nvim", "ellisonleao/gruvbox.nvim",
enabled = false, enabled = false,
@ -65,6 +66,7 @@ return {
vim.cmd("colorscheme gruvbox") vim.cmd("colorscheme gruvbox")
end, end,
}, },
{ {
"rebelot/kanagawa.nvim", "rebelot/kanagawa.nvim",
priority = 1000 , priority = 1000 ,
@ -96,7 +98,16 @@ return {
}) })
-- setup must be called before loading -- setup must be called before loading
vim.cmd("colorscheme kanagawa")
-- vim.cmd("colorscheme kanagawa")
end end
}, },
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
config = function ()
require('tokyonight').setup()
vim.cmd("colorscheme kanagawa")
end
}
} }

+ 1
- 0
.config/nvim/lua/tovi/plugins/linting.lua View File

@ -10,6 +10,7 @@ return {
} }
lint.linters.phpcs = { lint.linters.phpcs = {
name = 'phpcs',
cmd = 'phpcs', cmd = 'phpcs',
stdin = true, stdin = true,
args = { args = {


+ 2
- 1
.config/nvim/lua/tovi/plugins/lualine.lua View File

@ -19,9 +19,10 @@ return {
lualine.setup({ lualine.setup({
options = { options = {
theme = "kanagawa",
theme = "tokyonight",
component_separators = { left = "", right = "" }, component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" }, section_separators = { left = "", right = "" },
globalstatus = true,
}, },
sections = { sections = {
lualine_b = { lualine_b = {


+ 0
- 55
.config/nvim/lua/tovi/plugins/noice.lua View File

@ -1,55 +0,0 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
opts = {
routes = {
{
filter = {
event = "msg_show",
kind = "",
find = "written",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "",
find = "fewer line",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "",
find = "more line",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "search_count",
},
opts = { skip = true },
},
},
views = {
cmdline_popup = {
border = {
style = "none",
padding = { 2, 3 },
},
filter_options = {},
win_options = {
winhighlight = "NormalFloat:NormalFloat,FloatBorder:FloatBorder",
},
},
},
},
}

+ 84
- 83
.config/nvim/lua/tovi/plugins/nvim-cmp.lua View File

@ -1,90 +1,91 @@
return { return {
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
-- Snippet Engine & its associated nvim-cmp source
{
"L3MON4D3/LuaSnip",
build = (function()
if vim.fn.has("win32") == 1 or vim.fn.executable("make") == 0 then
return
end
return "make install_jsregexp"
end)(),
dependencies = {
{
"rafamadriz/friendly-snippets",
config = function()
require("luasnip.loaders.from_vscode").lazy_load()
end,
},
},
},
"saadparwaiz1/cmp_luasnip",
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
-- Snippet Engine & its associated nvim-cmp source
{
"L3MON4D3/LuaSnip",
build = (function()
if vim.fn.has("win32") == 1 or vim.fn.executable("make") == 0 then
return
end
return "make install_jsregexp"
end)(),
dependencies = {
{
"rafamadriz/friendly-snippets",
config = function()
require("luasnip.loaders.from_vscode").lazy_load()
end,
},
},
},
"saadparwaiz1/cmp_luasnip",
"onsails/lspkind.nvim",
"kristijanhusak/vim-dadbod-completion",
"onsails/lspkind.nvim",
"kristijanhusak/vim-dadbod-completion",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp-signature-help",
},
config = function()
-- See `:help cmp`
local cmp = require("cmp")
local luasnip = require("luasnip")
local lspkind = require("lspkind")
luasnip.config.setup({})
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp-signature-help",
},
config = function()
-- See `:help cmp`
local cmp = require("cmp")
local luasnip = require("luasnip")
local lspkind = require("lspkind")
luasnip.config.setup({})
cmp.setup({
snippet = {
expand = function(args)
luasnip.lsp_expand(args.body)
end,
},
completion = {
cmp.setup({
snippet = {
expand = function(args)
luasnip.lsp_expand(args.body)
end,
},
completion = {
completeopt = "menu,menuone,noinsert", completeopt = "menu,menuone,noinsert",
}, },
mapping = cmp.mapping.preset.insert({
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-y>"] = cmp.mapping.confirm({ select = true }),
["<C-Space>"] = cmp.mapping.complete({}),
["<C-l>"] = cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { "i", "s" }),
["<C-h>"] = cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { "i", "s" }),
}),
sources = {
{ name = "nvim_lsp" },
-- { name = "nvim_lsp_signature_help" }, -- TODO: Get this working so hover() doesnt open twice
{ name = "luasnip" },
{ name = "buffer" },
{ name = "path" },
{ name = "vim-dadbod-completion" },
},
formatting = {
format = lspkind.cmp_format({
mode = "symbol_text",
menu = {
nvim_lua = "[API]",
nvim_lsp = "[LSP]",
luasnip = "[SNIP]",
vim_dadbod_completion = "[DBUI]",
path = "[PATH]",
buffer = "[BUFF]",
},
}),
},
})
end,
mapping = cmp.mapping.preset.insert({
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-y>"] = cmp.mapping.confirm({ select = true }),
["<C-Space>"] = cmp.mapping.complete({}),
["<C-l>"] = cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { "i", "s" }),
["<C-h>"] = cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { "i", "s" }),
}),
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "path" },
{ name = "vim-dadbod-completion" },
},
formatting = {
expandable_indicator = true,
fields = { "abbr", "kind", "menu" },
format = lspkind.cmp_format({
mode = "symbol_text",
menu = {
nvim_lua = "[API]",
nvim_lsp = "[LSP]",
luasnip = "[SNIP]",
vim_dadbod_completion = "[DBUI]",
path = "[PATH]",
buffer = "[BUFF]",
},
}),
},
})
end,
} }

+ 5
- 6
.tmux.conf View File

@ -65,19 +65,18 @@ bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'Nybkox/tmux-kanagawa'
set -g @plugin "janoamaral/tokyo-night-tmux"
set -g @tokyo-night-tmux_window_id_style digital
set -g @kanagawa-show-powerline true
set -g @kanagawa-theme 'wave'
# set -g @plugin 'Nybkox/tmux-kanagawa'
# set -g @kanagawa-show-powerline true
# set -g @kanagawa-theme 'wave'
# set -g @plugin 'egel/tmux-gruvbox' # set -g @plugin 'egel/tmux-gruvbox'
# set -g @tmux-gruvbox 'dark' # or 'light' # set -g @tmux-gruvbox 'dark' # or 'light'
# set -g @plugin 'catppuccin/tmux' # set -g @plugin 'catppuccin/tmux'
#
# set -g @catppuccin_flavour 'mocha' # set -g @catppuccin_flavour 'mocha'
#
# set -g @catppuccin_status_left_separator "" # set -g @catppuccin_status_left_separator ""
# set -g @catppuccin_window_middle_separator " " # set -g @catppuccin_window_middle_separator " "
# set -g @catppuccin_status_modules_right "application session directory date_time" # set -g @catppuccin_status_modules_right "application session directory date_time"


+ 3
- 1
.zshrc View File

@ -103,7 +103,9 @@ source ~/.config/aliasrc
# Source fzf for Ctrl+r # Source fzf for Ctrl+r
source <(fzf --zsh) source <(fzf --zsh)
. "$HOME/.cargo/env"
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi
# Speed debugging # Speed debugging
# zprof # zprof


Loading…
Cancel
Save