Auto commit: 2024-11-08 23:35:02

This commit is contained in:
Daniel Fichtinger 2024-11-08 23:35:02 -05:00
commit 09b0647291
12 changed files with 288 additions and 9 deletions

View file

@ -3,6 +3,28 @@
-- Add any additional autocmds here
vim.opt_local.breakindent = true
vim.opt_local.wrap = true
<<<<<<< HEAD
=======
vim.api.nvim_create_autocmd("FileType", {
pattern = "python",
callback = function()
local cl = require("colorbuddy")
cl.Group.new("@variable", cl.colors.primary)
cl.Group.new("@string", cl.colors.secondary)
cl.Group.new("@keyword", cl.colors.complement)
cl.Group.new("@keyword.operator", cl.colors.complement)
cl.Group.new("@constant.builtin", cl.colors.complement)
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "tex",
callback = function()
vim.cmd([[
syntax match texMathSymbol "\\oplus" conceal cchar=
]])
end,
})
>>>>>>> refs/remotes/origin/main
-- This autocommand fixes syntax highlighting for inline math in markdown files
-- Together with vimtex, it will apply very sexy good stuff here!
vim.api.nvim_create_autocmd("FileType", {

View file

@ -2,11 +2,29 @@ return {
{
"zbirenbaum/copilot-cmp",
opts = function()
local copilot_toggle = require("lazyvim.util.toggle").wrap({
name = "Copilot Completion",
-- local copilot_toggle = require("lazyvim.util.toggle").wrap({
-- name = "Copilot Completion",
-- get = function()
-- return not require("copilot.client").is_disabled()
-- end,
-- set = function(state)
-- if state then
-- require("copilot.command").enable()
-- else
-- require("copilot.command").disable()
-- end
-- end,
-- })
-- disable by default
require("copilot.command").disable()
local cptoggle = Snacks.toggle.new({
name = "Copilot",
-- map = vim.keymap.set,
which_key = true,
get = function()
return not require("copilot.client").is_disabled()
end,
notify = true,
set = function(state)
if state then
require("copilot.command").enable()
@ -15,11 +33,8 @@ return {
end
end,
})
-- disable by default
require("copilot.command").disable()
LazyVim.toggle.map("<leader>at", copilot_toggle)
Snacks.toggle.map(cptoggle, "<leader>at", { desc = "Toggle Copilot" })
-- LazyVim.toggle.map("<leader>at", copilot_toggle)
end,
},
{ "CopilotC-Nvim/CopilotChat.nvim", opts = {

View file

@ -0,0 +1,35 @@
-- Ok, this plugin is really awesome!
-- And everyone should know about it -- game changer!!!
return {
"shortcuts/no-neck-pain.nvim",
version = "*",
opts = function()
require("which-key").add({
{ "<leader>n", group = "+NoNeckPain" },
})
return {
width = 120,
mappings = {
enabled = true,
},
autocmds = {
enableOnVimEnter = true,
skipEnteringNoNeckPainBuffer = true,
},
buffers = {
left = {
scratchPad = {
enabled = false,
pathToFile = "~/SyncDocuments/scratch-l.md",
},
},
right = {
scratchPad = {
enabled = false,
pathToFile = "~/SyncDocuments/scratch-r.md",
},
},
},
}
end,
}

View file

@ -77,6 +77,8 @@ return {
-- Group.new("gotype", colors.primary)
Group.new("Boolean", colors.complement)
Group.new("Constant", colors.complement)
-- TODO: change these groups to match Snacks instead...
-- Is that even needed actually?
Group.new("NotifyINFOBorder", colors.infoborder)
Group.new("NotifyINFOTitle", colors.complement)
Group.new("NotifyINFOIcon", colors.complement)