mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
random rice
This commit is contained in:
parent
f47fc0f76f
commit
47a2d487da
9 changed files with 46 additions and 129 deletions
|
|
@ -5,7 +5,6 @@ return {
|
|||
dependencies = {
|
||||
'mikavilpas/blink-ripgrep.nvim',
|
||||
'fang2hou/blink-copilot',
|
||||
'nvim-orgmode/orgmode',
|
||||
},
|
||||
opts = {
|
||||
fuzzy = {
|
||||
|
|
@ -24,9 +23,6 @@ return {
|
|||
'ripgrep',
|
||||
'copilot',
|
||||
},
|
||||
per_filetype = {
|
||||
org = { 'orgmode' },
|
||||
},
|
||||
providers = {
|
||||
snippets = {
|
||||
score_offset = -20,
|
||||
|
|
@ -51,11 +47,6 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
orgmode = {
|
||||
name = 'Orgmode',
|
||||
module = 'orgmode.org.autocompletion.blink',
|
||||
fallbacks = { 'buffer' },
|
||||
},
|
||||
},
|
||||
},
|
||||
cmdline = {
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ return {
|
|||
puppet = { 'puppet-lint' },
|
||||
lua = { 'stylua' },
|
||||
python = { 'ruff' },
|
||||
nix = { 'alejandra' },
|
||||
['*'] = { 'trim_whitespace' },
|
||||
},
|
||||
format_on_save = function(bufnr)
|
||||
|
|
|
|||
|
|
@ -89,12 +89,12 @@ return {
|
|||
local search = MiniStatusline.section_searchcount { trunc_width = 75 }
|
||||
|
||||
return MiniStatusline.combine_groups {
|
||||
{ hl = mode_hl, strings = { mode } },
|
||||
'%<', -- Mark general truncate point
|
||||
{ hl = 'MiniStatuslineFilename', strings = { filename } },
|
||||
{ hl = 'MiniStatuslineFilename', strings = { '' } },
|
||||
'%=', -- End left alignment
|
||||
{ hl = 'MiniStatusDevinfo', strings = { diff, diagnostics, lsp } },
|
||||
{ hl = mode_hl, strings = { search } },
|
||||
{ hl = 'MiniStatuslineFilename', strings = { search } },
|
||||
{ hl = mode_hl, strings = { mode } },
|
||||
}
|
||||
end,
|
||||
inactive = function()
|
||||
|
|
@ -150,10 +150,10 @@ return {
|
|||
miniclue.gen_clues.registers(),
|
||||
miniclue.gen_clues.windows(),
|
||||
miniclue.gen_clues.z(),
|
||||
{ mode = 'n', keys = '<Leader>wj', postkeys = '<Leader>w', desc = 'TS Down' },
|
||||
{ mode = 'n', keys = '<Leader>wk', postkeys = '<Leader>w', desc = 'TS Up' },
|
||||
{ mode = 'n', keys = '<Leader>wh', postkeys = '<Leader>w', desc = 'TS Left' },
|
||||
{ mode = 'n', keys = '<Leader>wl', postkeys = '<Leader>w', desc = 'TS Right' },
|
||||
{ mode = 'n', keys = '<Leader>wj', postkeys = '<Leader>w', desc = 'TS Down' },
|
||||
{ mode = 'n', keys = '<Leader>wk', postkeys = '<Leader>w', desc = 'TS Up' },
|
||||
{ mode = 'n', keys = '<Leader>wh', postkeys = '<Leader>w', desc = 'TS Left' },
|
||||
{ mode = 'n', keys = '<Leader>wl', postkeys = '<Leader>w', desc = 'TS Right' },
|
||||
{ mode = 'n', keys = '<Leader>w<C-J>', postkeys = '<Leader>w', desc = 'Swap TS Down' },
|
||||
{ mode = 'n', keys = '<Leader>w<C-K>', postkeys = '<Leader>w', desc = 'Swap TS Up' },
|
||||
{ mode = 'n', keys = '<Leader>w<C-H>', postkeys = '<Leader>w', desc = 'Swap TS Left' },
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ return {
|
|||
vim.cmd('colorscheme terafox')
|
||||
vim.api.nvim_set_hl(0, 'StatusLine', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'StatusLineNC', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'TablineFill', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'MiniDiffSignAdd', { fg = 'green', bold = true })
|
||||
vim.api.nvim_set_hl(0, 'MiniDiffSignDelete', { fg = 'red', bold = true })
|
||||
vim.api.nvim_set_hl(0, 'MiniDiffSignChange', { fg = 'green', bold = true })
|
||||
|
|
@ -149,47 +150,4 @@ return {
|
|||
},
|
||||
},
|
||||
{ 'ThePrimeagen/refactoring.nvim', event = 'VeryLazy', config = true },
|
||||
{
|
||||
'nvim-orgmode/orgmode',
|
||||
event = 'VeryLazy',
|
||||
ft = { 'org' },
|
||||
dependencies = 'nvim-treesitter',
|
||||
keys = {
|
||||
{
|
||||
'<leader>oR',
|
||||
'<cmd>e ~/orgfiles/refile.org<CR>',
|
||||
desc = 'open org refile',
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require('orgmode').setup {
|
||||
org_agenda_files = '~/orgfiles/**/*',
|
||||
org_default_notes_file = '~/orgfiles/refile.org',
|
||||
org_todo_keywords = {
|
||||
'TODO',
|
||||
'IN_PROGRESS',
|
||||
'BLOCKED',
|
||||
'|',
|
||||
'DONE',
|
||||
'NOT DOING',
|
||||
},
|
||||
org_capture_templates = {
|
||||
l = {
|
||||
description = 'Work Log',
|
||||
template = '* %?',
|
||||
target = '~/orgfiles/worklog.org',
|
||||
},
|
||||
},
|
||||
}
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'org',
|
||||
callback = function()
|
||||
vim.keymap.set({ 'n', 'i' }, '\\\\', '<cmd>lua require("orgmode").action("org_mappings.meta_return")<CR>', {
|
||||
silent = true,
|
||||
buffer = true,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ return {
|
|||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = '<CR>',
|
||||
node_incremental = '<TAB>',
|
||||
node_incremental = 'v',
|
||||
node_decremental = '<S-TAB>',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue