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

View file

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