many things, nvim, manpages

This commit is contained in:
Anthony Cicchetti 2024-04-17 08:48:09 -04:00
parent e5df0b93cc
commit 8434b5a46e
5 changed files with 35 additions and 10 deletions

View file

@ -44,11 +44,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713019815, "lastModified": 1713294767,
"narHash": "sha256-jzTo97VeKMNfnKw3xU+uiU5C7wtnLudsbwl/nwPLC7s=", "narHash": "sha256-LmaabaQZdx52MPGKPRt9Opoc9Gd9RbwvCdysUUYQoXI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8fdf329526f06886b53b94ddf433848a0d142984", "rev": "fa8c16e2452bf092ac76f09ee1fb1e9f7d0796e7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -102,11 +102,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712459390, "lastModified": 1713067146,
"narHash": "sha256-e12bNDottaGoBgd0AdH/bQvk854xunlWAdZwr/oHO1c=", "narHash": "sha256-9D20xjblGKEVRVCnM3qWhiizEa9i6OpK6xQJajwcwOQ=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "4676d72d872459e1e3a248d049609f110c570e9a", "rev": "93aed67288be60c9ef6133ba2f8de128f4ef265c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -187,11 +187,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1713023065, "lastModified": 1713356833,
"narHash": "sha256-itHmb9Z1kxuF7vkbGThlpKiEzBO+375Y7zs0toSC0KU=", "narHash": "sha256-cHDKWXDOSTvtyebdvWpn1gix0SR9cH3O0eh5Ju+b+Qw=",
"owner": "nixOS", "owner": "nixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "61d5de98080fbe185e83a59c7b0f672257405cec", "rev": "95db6c67d7fa6324302fcfc1848b09884a12d0ac",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -6,5 +6,6 @@
}: { }: {
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
PAGE = "page -q 90000 -z 90000";
}; };
} }

View file

@ -184,6 +184,15 @@
trouble = { trouble = {
enable = true; enable = true;
}; };
ufo = {
enable = true;
extraLua.pre = ''
require('ufo').setup({ provider_selector = function(bufnr, filetype, buftype)
return {'treesitter', 'indent' }
end
})
'';
};
undotree = { undotree = {
enable = true; enable = true;
}; };
@ -214,9 +223,12 @@
rainbow-delimiters-nvim rainbow-delimiters-nvim
gitlinker-linrongbin16 gitlinker-linrongbin16
telescope-symbols-nvim telescope-symbols-nvim
overseer-nvim
officer-nvim
nvim-web-devicons nvim-web-devicons
lsp-signature-nvim lsp-signature-nvim
nvim-rg nvim-rg
nvim-biscuits
telescope-egrepify-nvim telescope-egrepify-nvim
]); ]);
mappings = { mappings = {

View file

@ -1,5 +1,4 @@
vim.o.expandtab = true vim.o.expandtab = true
vim.o.foldlevel = 2
local guifont = { "Iosevka Custom" } local guifont = { "Iosevka Custom" }
if vim.loop.os_uname().sysname == "Darwin" then if vim.loop.os_uname().sysname == "Darwin" then
table.insert(guifont, "Apple Color Emoji") table.insert(guifont, "Apple Color Emoji")
@ -33,6 +32,11 @@ vim.o.wildmenu = true
vim.o.wildmode = "list:longest,full" vim.o.wildmode = "list:longest,full"
vim.g.skip_ts_context_commentstring_module = true vim.g.skip_ts_context_commentstring_module = true
-- `page` config
vim.g.page_icon_pipe = "|"
vim.g.page_icon_redirect = ">"
vim.g.page_icon_instance = "$"
vim.api.nvim_create_autocmd("TextYankPost", { vim.api.nvim_create_autocmd("TextYankPost", {
callback = function() callback = function()
vim.highlight.on_yank() vim.highlight.on_yank()
@ -40,6 +44,9 @@ vim.api.nvim_create_autocmd("TextYankPost", {
}) })
require("gitlinker").setup() require("gitlinker").setup()
require("nvim-biscuits").setup()
require("overseer").setup()
require("officer").setup({ create_mappings = true })
local cmp = require("cmp") local cmp = require("cmp")

5
zsh/funcs/man Normal file
View file

@ -0,0 +1,5 @@
man () {
PROGRAM="${@[-1]}"
SECTION="${@[-2]}"
page -W "man://${PROGRAM}${SECTION:+($SECTION)}"
}