Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularisArt committed Apr 24, 2024
1 parent f5994a2 commit c5971bf
Show file tree
Hide file tree
Showing 16 changed files with 218 additions and 68 deletions.
12 changes: 6 additions & 6 deletions aspects/dotfiles/files/.config/inkscape/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@
id="rect"
style="fill:blue;"
usecurrent="1"
width="84.6093966266302"
height="71.5353057140439"
width="50.8442001342773"
height="40.9504814147949"
ry="0" />
<eventcontext
id="3dbox"
Expand Down Expand Up @@ -311,7 +311,7 @@
id="lpetool"
mode="drag"
style="fill:#ff0000;fill-opacity:1;fill-rule:nonzero;stroke:none;"
unit="mm"
unit="px"
show_bbox="1" />
<eventcontext
id="text"
Expand Down Expand Up @@ -624,7 +624,7 @@
</group>
<group
id="save_as"
default="org.inkscape.output.svg.inkscape"
default="org.inkscape.output.png.inkscape"
append_extension="1"
enable_preview="1"
path="/home/hashem/Documents/school-notes/College/Year-2/winter/mth-254/figures/lec-13"
Expand All @@ -638,7 +638,7 @@
<group
id="open"
enable_preview="1"
path="/home/hashem/Documents/school-notes/College/Year-2/winter/mth-254/figures/lec-17/" />
path="/home/hashem/Documents/school-notes/College/Year-2/spring/mth-256/figures/lec-05/" />
<group
id="import"
enable_preview="1"
Expand Down Expand Up @@ -1032,7 +1032,7 @@
fernando.slopeField.nSegmentsY="14" />
<group
id="desktop"
style="stroke-width:0.5308;-inkscape-font-specification:'monospace, Normal';font-family:monospace;font-size:9.99998667px;fill-border:#3DC6F3;fill:none;stroke:#000000;-inkscape-stroke:none;stop-color:#000000">
style="stroke-width:0.5308;-inkscape-font-specification:'monospace, Normal';font-family:monospace;font-size:9.99998667px;fill-border:#3DC6F3;fill:#ffffff;stroke:#ffffff;-inkscape-stroke:none;stop-color:#000000">
<group
width="640"
height="480"
Expand Down
Binary file modified aspects/dotfiles/files/.local/share/autojump/autojump.txt
Binary file not shown.
Binary file modified aspects/dotfiles/files/.local/share/autojump/autojump.txt.bak
Binary file not shown.
Binary file modified aspects/dotfiles/files/.local/share/newsboat/cache.db
Binary file not shown.
Binary file modified aspects/dotfiles/files/.local/share/zathura/bookmarks.sqlite
Binary file not shown.
24 changes: 12 additions & 12 deletions aspects/email/files/.config/neomutt/colors.muttrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
# Formatting #
################

set date_format = "%a %d %h %H:%M"
set index_format=" %zc %zs %zt | %-35.35L %@attachment_info@ %?M10?~(%1M) ?%-30.100s %> %?Y?%Y ? %(!%a %d %h %H:%M) "
set compose_format="-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-"
set pager_format = "[%n] [%T %s]%* [ %{!%d %b %Y · %H:%M}] [%?X? %X?%P]"
set status_format = " [%D] %?u?[ %u] ?%?R?[ %R] ?%?d?[ %d] ?%?t?[ %t] ?%?F?[ %F] ?%?p?[ %p]? \n \n"
set vfolder_format = "[%N %?n?%3n& ? %8m  · %f]"
set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M"
set sidebar_format = '%D%?Z? [%Z]?%* %?S?%S?'
# index-format-hook attachment_info "=B text/calendar ~X 1" " "
# index-format-hook attachment_info "=B text/calendar" " "
# index-format-hook attachment_info "~X 1" " "
# index-format-hook attachment_info "~A" " "
set date_format = "%a %d %h %H:%M"
set index_format =" %zc %zs %zt | %-35.35L %@attachment_info@ %?M10?~(%1M) ?%-30.100s %> %?Y?%Y ? %(!%a %d %h %H:%M) "
set compose_format ="-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-"
set pager_format = "[%n] [%T %s]%* [ %{!%d %b %Y · %H:%M}] [%?X? %X?%P]"
set status_format = " [%D] %?u?[ %u] ?%?R?[ %R] ?%?d?[ %d] ?%?t?[ %t] ?%?F?[ %F] ?%?p?[ %p]? \n \n"
set vfolder_format = "[%N %?n?%3n& ? %8m  · %f]"
set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M"
set sidebar_format = '%D%?Z? [%Z]?%* %?S?%S?'
index-format-hook attachment_info "=B text/calendar ~X 1" " "
index-format-hook attachment_info "=B text/calendar" " "
index-format-hook attachment_info "~X 1" " "
index-format-hook attachment_info "~A" " "

####################
# General Colors #
Expand Down
4 changes: 4 additions & 0 deletions aspects/nvim/files/.config/nvim/lua/config/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ function Lazyload()
loader("nvim-treesitter-refactor")
loader("nvim-ts-context-commentstring")
loader("nvim-treesitter-context")
loader("nvim-ufo")

vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"

loader("guihua.lua")
loader("nvim-lspconfig")
Expand Down
14 changes: 9 additions & 5 deletions aspects/nvim/files/.config/nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ opt.shiftwidth = 2 -- Size of an indent
opt.shortmess:append { W = true, I = true, c = true }
opt.showmode = false -- Dont show mode since we have a statusline
opt.sidescrolloff = 8 -- Columns of context
opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
opt.smartcase = true -- Don't ignore case with capitals
opt.smartindent = true -- Insert indents automatically
opt.spelllang = { "en" } -- Languages used for spell check
Expand All @@ -50,10 +49,15 @@ opt.wildmode = "longest:full,full" -- Command-line completion mode
opt.winminwidth = 5 -- Minimum window width
opt.wrap = false -- Disable line wrap
opt.foldenable = false -- Disable Folds
-- opt.foldenable = true -- Enable Folds
-- opt.foldcolumn = "1" -- Needed for nvim-ufo.
-- opt.foldlevel = 99 -- Make all folds closed.
-- opt.foldlevelstart = 99 -- Make all folds closed.
opt.foldmethod = "manual" -- "manual" for manual folds; "expr"
opt.foldexpr = "nvim_treesitter#foldexpr()" -- use treesitter to generate folds
opt.foldcolumn = "1"
opt.foldlevel = 2 -- Fold levels opened at file opens
opt.foldlevelstart = 99
opt.foldnestmax = 3 -- Max level of fold
opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time

local fcs = vim.opt.fillchars:get()

if vim.fn.has("nvim-0.9.0") == 1 then
opt.splitkeep = "screen"
Expand Down
22 changes: 11 additions & 11 deletions aspects/nvim/files/.config/nvim/lua/modules/ai/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ return function(use)
-- event = "InsertEnter",
-- })

use({
"github/copilot.vim",
config = function()
vim.g.copilot_no_tab_map = true
vim.api.nvim_set_keymap("i", "<C-h>", "copilot#Accept('<CR>')", { silent = true, expr = true })
-- use({
-- "github/copilot.vim",
-- config = function()
-- vim.g.copilot_no_tab_map = true
-- vim.api.nvim_set_keymap("i", "<C-h>", "copilot#Accept('<CR>')", { silent = true, expr = true })

vim.g.copilot_filetypes = {
["*"] = true,
}
end,
event = "InsertEnter",
})
-- vim.g.copilot_filetypes = {
-- ["*"] = true,
-- }
-- end,
-- event = "InsertEnter",
-- })
end
2 changes: 1 addition & 1 deletion aspects/nvim/files/.config/nvim/lua/modules/lsp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function config.null_ls()
end,
}

null_ls.setup(setup)
-- null_ls.setup(setup)
end

function config.navigator()
Expand Down
14 changes: 7 additions & 7 deletions aspects/nvim/files/.config/nvim/lua/modules/lsp/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ return function(use)
},
})

-- use({
-- "simrat39/inlay-hints.nvim",
-- after = "nvim-lspconfig",
-- config = function()
-- require("inlay-hints").setup()
-- end,
-- })
use({
"simrat39/inlay-hints.nvim",
after = "nvim-lspconfig",
config = function()
require("inlay-hints").setup()
end,
})

use({
"jose-elias-alvarez/null-ls.nvim",
Expand Down
95 changes: 87 additions & 8 deletions aspects/nvim/files/.config/nvim/lua/modules/ui/config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,76 @@
local config = {}

function config.dressing_init()
vim.ui.select = function(...)
require("lazy").load({ plugins = { "dressing.nvim" } })
return vim.ui.select(...)
end
vim.ui.input = function(...)
require("lazy").load({ plugins = { "dressing.nvim" } })
return vim.ui.input(...)
end
end

function config.neoscroll()
require("neoscroll").setup({
mappings = { "<C-u>", "<C-d>", "<C-y>", "<C-e>", "zt", "zz", "zb", "n", "N" },
hide_cursor = true,
stop_eof = true,
use_local_scrolloff = false,
respect_scrolloff = true,
cursor_scrolls_alone = false,
})
end

function config.ufo_init()
local set_foldcolumn_for_file = vim.api.nvim_create_augroup("set_foldcolumn_for_file", {
clear = true,
})
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
group = set_foldcolumn_for_file,
callback = function()
if vim.bo.buftype == "" then
vim.wo.foldcolumn = "1"
else
vim.wo.foldcolumn = "0"
end
end,
})
vim.api.nvim_create_autocmd("OptionSet", {
group = set_foldcolumn_for_file,
pattern = "buftype",
callback = function()
if vim.bo.buftype == "" then
vim.wo.foldcolumn = "1"
else
vim.wo.foldcolumn = "0"
end
end,
})
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.foldenable = true
end

function config.ufo()
local ufo = require "ufo"
ufo.setup(opts)

vim.api.nvim_create_autocmd("LspAttach", {
desc = "Setup Ufo `K` with LSP hover",
callback = function(args)
local bufnr = args.buf

vim.keymap.set("n", "K", function()
local winid = ufo.peekFoldedLinesUnderCursor()
if not winid then
vim.lsp.buf.hover()
end
end, { buffer = bufnr, desc = "LSP: Signature help" })
end,
})
end

function config.zen_mode()
require("zen-mode").setup({
window = {
Expand Down Expand Up @@ -61,15 +132,23 @@ function config.hlslens()

local kopts = { noremap = true, silent = true }

vim.api.nvim_set_keymap("n", "n",
[[<CMD>execute("normal! " . v:count1 . "n")<CR><CMD>lua require("hlslens").start()<CR>]], kopts)
vim.api.nvim_set_keymap("n", "N",
[[<CMD>execute("normal! " . v:count1 . "N")<CR><CMD>lua require("hlslens").start()<CR>]], kopts)
vim.api.nvim_set_keymap(
"n",
"n",
[[<CMD>execute("normal! " . v:count1 . "n")<CR><CMD>lua require("hlslens").start()<CR>]],
kopts
)
vim.api.nvim_set_keymap(
"n",
"N",
[[<CMD>execute("normal! " . v:count1 . "N")<CR><CMD>lua require("hlslens").start()<CR>]],
kopts
)

vim.api.nvim_set_keymap("n", "*", "*<CMD>lua require(\"hlslens\").start()<CR>", kopts)
vim.api.nvim_set_keymap("n", "#", "#<CMD>lua require(\"hlslens\").start()<CR>", kopts)
vim.api.nvim_set_keymap("n", "g*", "g*<CMD>lua require(\"hlslens\").start()<CR>", kopts)
vim.api.nvim_set_keymap("n", "g#", "g#<CMD>lua require(\"hlslens\").start()<CR>", kopts)
vim.api.nvim_set_keymap("n", "*", '*<CMD>lua require("hlslens").start()<CR>', kopts)
vim.api.nvim_set_keymap("n", "#", '#<CMD>lua require("hlslens").start()<CR>', kopts)
vim.api.nvim_set_keymap("n", "g*", 'g*<CMD>lua require("hlslens").start()<CR>', kopts)
vim.api.nvim_set_keymap("n", "g#", 'g#<CMD>lua require("hlslens").start()<CR>', kopts)
end

return config
Loading

0 comments on commit c5971bf

Please sign in to comment.