feat(config): various config updates

Packaged updates to configuration.
This commit is contained in:
2025-08-23 11:52:26 -04:00
parent 00b23548c3
commit 4545e18a68
20 changed files with 564 additions and 107 deletions
+61 -3
View File
@@ -30,11 +30,16 @@ if vim.g.useblinkcmp then
vim.g.lazyvim_blink_main = true
end
return {
{
return { -- Blink.cmp
{ -- Overide the lazy-load event to include CmdlineEnter
'saghen/blink.cmp',
event = { 'InsertEnter', 'CmdlineEnter' },
},
{ -- Load blink.cmp configuration
'saghen/blink.cmp',
dependencies = {
'mikavilpas/blink-ripgrep.nvim',
'archie-judd/blink-cmp-words',
},
opts = {
enabled = function()
@@ -65,6 +70,15 @@ if vim.g.useblinkcmp then
snippets = {
preset = 'luasnip',
},
fuzzy = {
implementation = 'prefer_rust',
use_frecency = true,
sorts = {
'exact',
'score',
'sort_text',
},
},
keymap = {
preset = 'enter',
['<C-y>'] = { 'select_and_accept' },
@@ -113,7 +127,11 @@ if vim.g.useblinkcmp then
module = 'blink-ripgrep',
name = 'Ripgrep',
opts = {
search_casing = '--smart-case',
backend = {
ripgrep = {
search_casing = '--smart-case',
},
},
},
transform_items = function(_, items)
for _, item in ipairs(items) do
@@ -125,13 +143,53 @@ if vim.g.useblinkcmp then
return items
end,
},
-- Use the thesaurus source
thesaurus = {
name = 'blink-cmp-words',
module = 'blink-cmp-words.thesaurus',
-- All available options
opts = {
-- A score offset applied to returned items.
-- By default the highest score is 0 (item 1 has a score of -1, item 2 of -2 etc..).
score_offset = 0,
-- Default pointers define the lexical relations listed under each definition,
-- see Pointer Symbols below.
-- Default is as below ("antonyms", "similar to" and "also see").
pointer_symbols = { '!', '&', '^' },
},
},
-- Use the dictionary source
dictionary = {
name = 'blink-cmp-words',
module = 'blink-cmp-words.dictionary',
-- All available options
opts = {
-- The number of characters required to trigger completion.
-- Set this higher if completion is slow, 3 is default.
dictionary_search_threshold = 3,
-- See above
score_offset = 0,
-- See above
pointer_symbols = { '!', '&', '^' },
},
},
},
default = {
'lsp',
'path',
'lazydev',
'snippets',
'buffer',
'ripgrep',
'thesaurus',
},
-- Setup completion by filetype
per_filetype = {
text = { 'dictionary' },
markdown = { 'thesaurus' },
},
},
},
+15
View File
@@ -65,4 +65,19 @@ return {
cond = require('data.cond').tiny_inline_diagnostic,
config = require('data.types').tiny_inline_diagnostic.config,
},
{
'neovim/nvim-lspconfig',
init = function() end,
opts = {
servers = {
yamlls = {
settings = {
yaml = {
customTags = vim.g.custom_yaml_tags,
},
},
},
},
},
},
}
+6
View File
@@ -9,6 +9,12 @@ return {
'ehpi/vim-illuminate',
opts = require('data.types').illuminate.opts,
},
{ -- Nvim-notify
'rcarriga/nvim-notify',
opts = {
fps = 144, -- your monitor refresh rate
},
},
{ -- Grug-Far
'MagicDuck/grug-far.nvim',
opts = require('data.types').grug_far.opts,
+4
View File
@@ -44,4 +44,8 @@ return {
vim.fn['mkdp#util#install']()
end,
},
{ -- CookLang
'luizribeiro/vim-cooklang',
lazy = false,
},
}
+25 -23
View File
@@ -2,27 +2,29 @@
-- │ Nvim-Updater │
-- ╰─────────────────────────────────────────────────────────╯
return { -- Neovim Updater
'rootiest/nvim-updater.nvim',
version = '*', -- Pin to GitHub releases
lazy = false,
opts = {
build_type = 'RelWithDebInfo',
branch = 'master',
verbose = false,
check_for_updates = true,
update_interval = (60 * 60) * 6, -- 6 hours
notify_updates = false,
default_keymaps = false,
},
keys = function()
-- Load Neovim Updater Debugging Functions
require('config.nvim_updater') -- Debugging Functions
-- return { -- Neovim Updater
-- 'rootiest/nvim-updater.nvim',
-- version = '*', -- Pin to GitHub releases
-- lazy = false,
-- opts = {
-- build_type = 'Release',
-- branch = 'master',
-- verbose = false,
-- check_for_updates = true,
-- update_interval = (60 * 60) * 6, -- 6 hours
-- notify_updates = false,
-- default_keymaps = false,
-- },
-- keys = function()
-- -- Load Neovim Updater Debugging Functions
-- require('config.nvim_updater') -- Debugging Functions
--
-- -- Add Neovim Updater menu
-- require('data.func').add_keymap(require('data.keys').group.nvimup)
-- -- Add Neovim Updater keys
-- return require('data.keys').nvimup
-- end,
-- dev = vim.g.rootiest_dev or false,
-- }
-- Add Neovim Updater menu
require('data.func').add_keymap(require('data.keys').group.nvimup)
-- Add Neovim Updater keys
return require('data.keys').nvimup
end,
dev = vim.g.rootiest_dev or false,
}
return {}
+53 -28
View File
@@ -1,34 +1,59 @@
return {
'epwalsh/obsidian.nvim',
version = '*', -- recommended, use latest release instead of latest commit
lazy = true,
event = {
'BufReadPre ' .. vim.fn.expand('~' .. '/vaults/rootiest/*.md'),
'BufNewFile ' .. vim.fn.expand('~' .. '/vaults/rootiest/*.md'),
{
'obsidian-nvim/obsidian.nvim',
version = '*', -- recommended, use latest release instead of latest commit
lazy = true,
event = {
'BufReadPre ' .. vim.fn.expand('~' .. '/vaults/Rootiest Notes/*.md'),
'BufNewFile ' .. vim.fn.expand('~' .. '/vaults/Rootiest Notes/*.md'),
},
cmd = 'Obsidian',
dependencies = {
-- Required.
'nvim-lua/plenary.nvim',
},
opts = {
completion = {
nvim_cmp = false,
blink = true,
min_chars = 2,
},
picker = {
name = 'snacks.pick',
},
workspaces = {
{
name = 'Rootiest Notes',
path = '~/vaults/Rootiest Notes',
},
},
templates = {
folder = 'templates',
date_format = '%Y-%m-%d-%a',
time_format = '%H:%M',
substitutions = {
yesterday = function()
return os.date('%Y-%m-%d', os.time() - 86400)
end,
},
},
-- ui = {
-- enable = false,
-- },
},
},
dependencies = {
-- Required.
'nvim-lua/plenary.nvim',
},
opts = {
workspaces = {
{
name = 'rootiest',
path = '~/vaults/rootiest',
{
'arakkkkk/kanban.nvim',
ft = 'markdown',
opts = {
markdown = {
description_folder = './tasks/', -- Path to save the file corresponding to the task.
list_head = '## ',
},
},
templates = {
folder = 'templates',
date_format = '%Y-%m-%d-%a',
time_format = '%H:%M',
substitutions = {
yesterday = function()
return os.date('%Y-%m-%d', os.time() - 86400)
end,
},
},
ui = {
enable = false,
},
},
{
'marcocofano/excalidraw.nvim',
lazy = false,
},
}
+33 -1
View File
@@ -106,9 +106,16 @@ local profiler = {
},
}
---@class PickerList
---@field row2idx fun(self: PickerList, row: integer): integer
---@field _move fun(self: PickerList, index: integer, a: boolean, b: boolean): nil
---@class SnacksPicker
---@field list PickerList
--- flash_on_picker
---Use the flash.nvim plugin in Snacks picker
---@param picker table: The picker instance to interact with.
---@param picker SnacksPicker The picker instance to interact with.
local flash_on_picker = function(picker)
require('flash').jump({
pattern = '^',
@@ -162,11 +169,36 @@ local picker = {
jump = { close = true },
auto_close = true,
layout = { preset = 'sidebar' },
-- ignored = true, -- Show .ignore/.gitignore files
-- hidden = true, -- Show hidden files
},
},
layouts = {
-- default = vscode_layout,
vscode = vscode_layout,
ivy = {
layout = {
box = 'vertical',
backdrop = false,
row = -1,
width = 0.8,
height = 0.4,
border = 'top',
title = ' {title} {live} {flags}',
title_pos = 'left',
{ win = 'input', height = 1, border = 'bottom' },
{
box = 'horizontal',
{ win = 'list', width = 0.4, border = 'none' },
{
win = 'preview',
title = '{preview}',
width = 0.6,
border = 'left',
},
},
},
},
left = { preset = 'sidebar', layout = { position = 'left' } },
right = { preset = 'sidebar', layout = { position = 'right' } },
top = { preset = 'ivy', layout = { position = 'top' } },
+34 -34
View File
@@ -285,40 +285,40 @@ return { -- Lualine
end,
padding = { left = 0, right = 1 },
},
{ -- Music
function()
return music_stats.get_icon_with_text()
end,
cond = function()
return require('data.func').is_window_wide_enough(100)
end,
padding = { left = 0, right = 1 },
},
{ -- Neovim Updater Status
function()
return require('nvim_updater').get_statusline().icon_text
end,
color = function()
local fg = require('data.func').get_fg_color(
require('nvim_updater').get_statusline().color
)
local bg = require('data.func').get_bg_color('lualine_x')
return { fg = fg, bg = bg }
end,
on_click = function()
require('nvim_updater').show_new_commits({
isupdate = true,
short = false,
})
end,
padding = { left = 1, right = 1 },
cond = function()
if not pcall(require, 'nvim_updater') then
return false
end
return not string.find(vim.bo.filetype, 'neovim_updater_term')
end,
},
-- { -- Music
-- function()
-- return music_stats.get_icon_with_text()
-- end,
-- cond = function()
-- return require('data.func').is_window_wide_enough(100)
-- end,
-- padding = { left = 0, right = 1 },
-- },
-- { -- Neovim Updater Status
-- function()
-- return require('nvim_updater').get_statusline().icon_text
-- end,
-- color = function()
-- local fg = require('data.func').get_fg_color(
-- require('nvim_updater').get_statusline().color
-- )
-- local bg = require('data.func').get_bg_color('lualine_x')
-- return { fg = fg, bg = bg }
-- end,
-- on_click = function()
-- require('nvim_updater').show_new_commits({
-- isupdate = true,
-- short = false,
-- })
-- end,
-- padding = { left = 1, right = 1 },
-- cond = function()
-- if not pcall(require, 'nvim_updater') then
-- return false
-- end
-- return not string.find(vim.bo.filetype, 'neovim_updater_term')
-- end,
-- },
},
lualine_y = {
{ -- NeoCodeium Status