This commit is contained in:
Jaroslaw Konik 2023-07-16 21:23:41 +02:00
parent 1ebeeacdb2
commit ae864d114a
2 changed files with 32 additions and 11 deletions

View file

@ -13,7 +13,7 @@ set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:FiraCode Nerd Font" 15
font pango:FiraCode Nerd Font 12
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -172,15 +172,23 @@ mode "resize" {
bindsym $mod+r mode "resize"
# Window color settings
# class border backgr. text indicator
client.focused #81a1c1 #81a1c1 #ffffff #81a1c1
client.unfocused #2e3440 #1f222d #888888 #1f222d
client.focused_inactive #2e3440 #1f222d #888888 #1f222d
client.placeholder #2e3440 #1f222d #888888 #1f222d
client.urgent #900000 #900000 #ffffff #900000
# set primary gruvbox colorscheme colors
set $bg #282828
set $red #cc241d
set $green #98971a
set $yellow #d79921
set $blue #458588
set $purple #b16286
set $aqua #689d68
set $gray #a89984
set $darkgray #1d2021
client.background #242424
# green gruvbox
# class border|backgr|text|indicator|child_border
client.focused $green $green $darkgray $purple $darkgray
client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray
client.unfocused $darkgray $darkgray $yellow $purple $darkgray
client.urgent $red $red $white $red $red
# bar {
# position top

View file

@ -65,7 +65,6 @@ require("lazy").setup({
"nvim-telescope/telescope.nvim",
"nvim-lualine/lualine.nvim",
"ojroques/nvim-osc52",
{ "EdenEast/nightfox.nvim" },
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
@ -93,8 +92,13 @@ require("lazy").setup({
end,
},
"onsails/lspkind.nvim",
"edluffy/hologram.nvim",
"xiyaowong/transparent.nvim",
"ellisonleao/gruvbox.nvim",
})
require("transparent").setup()
local wk = require("which-key")
-- Stick buffer
@ -108,6 +112,7 @@ require("gitsigns").setup()
-- Vim options
vim.cmd("autocmd FileType qf set nobuflisted")
vim.g.transparent_enabled = true
vim.o.hidden = true
vim.wo.number = true
vim.o.wrap = false
@ -115,7 +120,7 @@ vim.g.mapleader = ","
vim.wo.signcolumn = "yes" -- prevents jitter
vim.opt.updatetime = 100
vim.o.background = "dark" -- or "light" for light mode
vim.cmd("colorscheme nightfox")
vim.cmd("colorscheme gruvbox")
-- Set completeopt to have a better completion experience
-- :help completeopt
-- menuone: popup even when there's only one match
@ -268,6 +273,14 @@ vim.api.nvim_create_autocmd("TermOpen", {
end,
})
vim.api.nvim_create_autocmd("TermClose", {
group = vim.api.nvim_create_augroup("UnpinTerminal", { clear = true }),
pattern = "term://*",
callback = function()
vim.cmd("Unpin")
end,
})
-- Comments
require("nvim_comment").setup()