Skip to content

Commit

Permalink
Fixes i3 screenshot filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
jevandezande committed Jan 10, 2024
1 parent beb29bf commit 2e904c3
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 15 deletions.
2 changes: 1 addition & 1 deletion config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness

bindsym $mod+Shift+x exec "\
maim --hidecursor -s ~/.screenshots/$(date +%Y-%b-%d--%H-%M-%S_maim | tr A-Z a-z).png; \
maim --hidecursor -s ~/.screenshots/$(date +%F--%H-%M-%S_maim | tr A-Z a-z).png; \
i3-nagbar --message 'Screenshot created' --type warning & \
sleep 2; pkill i3-nagbar"
35 changes: 35 additions & 0 deletions config/nvim/lua/custom/overrides.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
local M = {}

M.copilot = {
-- Possible configurable fields can be found on:
-- https://github.com/zbirenbaum/copilot.lua#setup-and-configuration
panel = {
enabled = true,
auto_refresh = false,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>"
},
layout = {
position = "right", -- | top | left | right
ratio = 0.4
},
},
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = "<F1>",
accept_word = false,
accept_line = false,
next = "<F2>",
prev = "<F3>",
dismiss = "<C-\\>",
},
},
}

return M
57 changes: 43 additions & 14 deletions config/nvim/lua/custom/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local cmp = require "cmp"
local overrides = require("custom.overrides")

local plugins = {
{
Expand All @@ -18,20 +19,20 @@ local plugins = {
},
},
},
{
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
config = function()
require("chatgpt").setup({
api_key_cmd = "pass show api/tokens/openai",
})
end,
},
-- {
-- "jackMort/ChatGPT.nvim",
-- event = "VeryLazy",
-- dependencies = {
-- "MunifTanjim/nui.nvim",
-- "nvim-lua/plenary.nvim",
-- "nvim-telescope/telescope.nvim",
-- },
-- config = function()
-- require("chatgpt").setup({
-- api_key_cmd = "pass show api/tokens/openai",
-- })
-- end,
-- },
{
"neovim/nvim-lspconfig",
config = function()
Expand Down Expand Up @@ -158,5 +159,33 @@ local plugins = {
{
"lervag/vimtex",
},
{
"zbirenbaum/copilot.lua",
event = "InsertEnter",
opts = overrides.copilot,
},

{
"hrsh7th/nvim-cmp",
dependencies = {
{
"zbirenbaum/copilot-cmp",
config = function()
require("copilot_cmp").setup()
end,
},
},
opts = {
sources = {
{ name = "nvim_lsp", group_index = 2 },
{ name = "copilot", group_index = 2 },
{ name = "luasnip", group_index = 2 },
{ name = "buffer", group_index = 2 },
{ name = "nvim_lua", group_index = 2 },
{ name = "path", group_index = 2 },
},
},
},
}

return plugins

0 comments on commit 2e904c3

Please sign in to comment.