Nvim: update plugins with newer maintainers
This commit is contained in:
13
.config/nvim/lua/plugins/ascii_image.lua
Normal file
13
.config/nvim/lua/plugins/ascii_image.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
'samodostal/image.nvim',
|
||||||
|
opts = {
|
||||||
|
render = {
|
||||||
|
min_padding = 5,
|
||||||
|
show_label = true,
|
||||||
|
use_dither = true,
|
||||||
|
},
|
||||||
|
events = {
|
||||||
|
update_on_nvim_resize = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,84 +10,84 @@ return {{
|
|||||||
"wuelnerdotexe/vim-enfocado",
|
"wuelnerdotexe/vim-enfocado",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme enfocado]])
|
--vim.cmd.colorscheme('enfocado')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fenetikm/falcon",
|
"fenetikm/falcon",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme falcon]])
|
--vim.cmd.colorscheme('falcon')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"casr/vim-colors-reference",
|
"casr/vim-colors-reference",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme reference]])
|
--vim.cmd.colorscheme('reference')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"blazkowolf/gruber-darker.nvim",
|
"blazkowolf/gruber-darker.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme gruber-darker]])
|
--vim.cmd.colorscheme('gruber-darker')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rebelot/kanagawa.nvim",
|
"rebelot/kanagawa.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme kanagawa]])
|
--vim.cmd.colorscheme('kanagawa')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"jaredgorski/spacecamp",
|
"jaredgorski/spacecamp",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme spacecamp]])
|
--vim.cmd.colorscheme('spacecamp')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lifepillar/vim-gruvbox8",
|
"lifepillar/vim-gruvbox8",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme gruvbox8]])
|
--vim.cmd.colorscheme('gruvbox8')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"marko-cerovac/material.nvim",
|
"marko-cerovac/material.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme material]])
|
--vim.cmd.colorscheme('material')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"srcery-colors/srcery-vim",
|
"srcery-colors/srcery-vim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme srcery]])
|
--vim.cmd.colorscheme('srcery')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tanvirtin/monokai.nvim",
|
"tanvirtin/monokai.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme monokai]])
|
--vim.cmd.colorscheme('monokai')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dasupradyumna/midnight.nvim",
|
"dasupradyumna/midnight.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd([[ colorscheme midnight]])
|
--vim.cmd.colorscheme('midnight')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"bluz71/vim-moonfly-colors",
|
"bluz71/vim-moonfly-colors",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd([[ colorscheme moonfly]])
|
vim.cmd.colorscheme('moonfly')
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
return {
|
return {
|
||||||
'ruifm/gitlinker.nvim',
|
'linrongbin16/gitlinker.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim'
|
'nvim-lua/plenary.nvim'
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
callbacks = {
|
-- callbacks = {
|
||||||
["git.viessmann.com"] = function(url_data)
|
-- ["git.viessmann.com"] = function(url_data)
|
||||||
local url = require'gitlinker.hosts'.get_base_https_url(url_data)
|
-- local url = require'gitlinker.hosts'.get_base_https_url(url_data)
|
||||||
if not url_data.file or not url_data.rev then
|
-- if not url_data.file or not url_data.rev then
|
||||||
return url
|
-- return url
|
||||||
end
|
-- end
|
||||||
url = url .. "/src/" .. url_data.rev .. "/" .. url_data.file
|
-- url = url .. "/src/" .. url_data.rev .. "/" .. url_data.file
|
||||||
|
--
|
||||||
if not url_data.lstart then
|
-- if not url_data.lstart then
|
||||||
return url
|
-- return url
|
||||||
end
|
-- end
|
||||||
url = url .. "#lines-" .. url_data.lstart
|
-- url = url .. "#lines-" .. url_data.lstart
|
||||||
if url_data.lend then
|
-- if url_data.lend then
|
||||||
url = url .. ":" .. url_data.lend
|
-- url = url .. ":" .. url_data.lend
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
return url
|
-- return url
|
||||||
end
|
-- end
|
||||||
},
|
-- },
|
||||||
-- default mapping to call url generation with action_callback
|
-- default mapping to call url generation with action_callback
|
||||||
mappings = "<leader>gl"
|
mappings = "<leader>gl"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,37 +19,37 @@ return {
|
|||||||
exclude_filetypes = {'log'},
|
exclude_filetypes = {'log'},
|
||||||
callbacks = {
|
callbacks = {
|
||||||
-- -- to trigger the close_events of vim.diagnostic.open_float.
|
-- -- to trigger the close_events of vim.diagnostic.open_float.
|
||||||
-- function ()
|
function ()
|
||||||
-- -- Close floating diag. and make it triggerable again.
|
-- Close floating diag. and make it triggerable again.
|
||||||
-- vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
|
vim.api.nvim_exec_autocmds("User", { pattern = "MurmurDiagnostics"})
|
||||||
-- vim.w.diag_shown = false
|
|
||||||
-- end,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
vim.api.nvim_create_autocmd('CursorHold', {
|
|
||||||
group = HIGHLIGHT,
|
|
||||||
pattern = '*',
|
|
||||||
callback = function ()
|
|
||||||
-- skip when a float-win already exists.
|
|
||||||
if vim.w.diag_shown then return end
|
|
||||||
|
|
||||||
-- open float-win when hovering on a cursor-word.
|
|
||||||
if vim.w.cursor_word ~= '' then
|
|
||||||
vim.diagnostic.open_float({
|
|
||||||
scope = 'cursor',
|
|
||||||
close_events = { "InsertEnter", "User MurmurDiagnostics" },
|
|
||||||
})
|
|
||||||
vim.api.nvim_create_autocmd("WinClosed", {
|
|
||||||
group = HIGHLIGHT,
|
|
||||||
buffer = buf,
|
|
||||||
once = true,
|
|
||||||
callback = function() vim.w.diag_shown = false end,
|
|
||||||
})
|
|
||||||
vim.w.diag_shown = true
|
|
||||||
else
|
|
||||||
vim.w.diag_shown = false
|
vim.w.diag_shown = false
|
||||||
end
|
end,
|
||||||
end
|
}
|
||||||
})
|
}
|
||||||
|
-- vim.api.nvim_create_autocmd('CursorHold', {
|
||||||
|
-- group = HIGHLIGHT,
|
||||||
|
-- pattern = '*',
|
||||||
|
-- callback = function ()
|
||||||
|
-- -- skip when a float-win already exists.
|
||||||
|
-- if vim.w.diag_shown then return end
|
||||||
|
--
|
||||||
|
-- -- open float-win when hovering on a cursor-word.
|
||||||
|
-- if vim.w.cursor_word ~= '' then
|
||||||
|
-- vim.diagnostic.open_float({
|
||||||
|
-- scope = 'cursor',
|
||||||
|
-- close_events = { "InsertEnter", "User MurmurDiagnostics" },
|
||||||
|
-- })
|
||||||
|
-- vim.api.nvim_create_autocmd("WinClosed", {
|
||||||
|
-- group = HIGHLIGHT,
|
||||||
|
-- buffer = buf,
|
||||||
|
-- once = true,
|
||||||
|
-- callback = function() vim.w.diag_shown = false end,
|
||||||
|
-- })
|
||||||
|
-- vim.w.diag_shown = true
|
||||||
|
-- else
|
||||||
|
-- vim.w.diag_shown = false
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
-- })
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,34 @@
|
|||||||
return {
|
return {
|
||||||
'samodostal/image.nvim',
|
'3rd/image.nvim',
|
||||||
opts = {
|
-- default config
|
||||||
render = {
|
config = function ()
|
||||||
min_padding = 5,
|
require('image').setup({
|
||||||
show_label = true,
|
backend = "kitty",
|
||||||
use_dither = true,
|
integrations = {
|
||||||
|
markdown = {
|
||||||
|
enabled = true,
|
||||||
|
clear_in_insert_mode = false,
|
||||||
|
download_remote_images = true,
|
||||||
|
only_render_image_at_cursor = false,
|
||||||
|
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
|
||||||
},
|
},
|
||||||
events = {
|
neorg = {
|
||||||
update_on_nvim_resize = true,
|
enabled = true,
|
||||||
|
clear_in_insert_mode = false,
|
||||||
|
download_remote_images = true,
|
||||||
|
only_render_image_at_cursor = false,
|
||||||
|
filetypes = { "norg" },
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
max_width = nil,
|
||||||
|
max_height = nil,
|
||||||
|
max_width_window_percentage = nil,
|
||||||
|
max_height_window_percentage = 50,
|
||||||
|
window_overlap_clear_enabled = false, -- toggles images when windows are overlapped
|
||||||
|
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
||||||
|
editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
|
||||||
|
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
|
||||||
|
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp" }, -- render image files as images when opened
|
||||||
|
})
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
40
.config/nvim/lua/plugins/jupyter.lua
Normal file
40
.config/nvim/lua/plugins/jupyter.lua
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"benlubas/molten-nvim",
|
||||||
|
dependencies = { "3rd/image.nvim" },
|
||||||
|
build = ":UpdateRemotePlugins",
|
||||||
|
config = function()
|
||||||
|
-- these are examples, not defaults. Please see the readme
|
||||||
|
vim.g.molten_image_provider = "image.nvim"
|
||||||
|
vim.g.molten_output_win_max_height = 20
|
||||||
|
vim.g.molten_auto_open_output = false
|
||||||
|
vim.keymap.set("n", "<localleader>R", ":MoltenEvaluateOperator<CR>",
|
||||||
|
{ silent = true, noremap = true, desc = "run operator selection" })
|
||||||
|
vim.keymap.set("n", "<localleader>rl", ":MoltenEvaluateLine<CR>",
|
||||||
|
{ silent = true, noremap = true, desc = "evaluate line" })
|
||||||
|
vim.keymap.set("n", "<localleader>rc", ":MoltenReevaluateCell<CR>",
|
||||||
|
{ silent = true, noremap = true, desc = "re-evaluate cell" })
|
||||||
|
vim.keymap.set("v", "<localleader>r", ":<C-u>MoltenEvaluateVisual<CR>gv",
|
||||||
|
{ silent = true, noremap = true, desc = "evaluate visual selection" })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
-- see the image.nvim readme for more information about configuring this plugin
|
||||||
|
"3rd/image.nvim",
|
||||||
|
opts = {
|
||||||
|
backend = "kitty", -- whatever backend you would like to use
|
||||||
|
max_width = 100,
|
||||||
|
max_height = 12,
|
||||||
|
max_height_window_percentage = math.huge,
|
||||||
|
max_width_window_percentage = math.huge,
|
||||||
|
window_overlap_clear_enabled = true, -- toggles images when windows are overlapped
|
||||||
|
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'goerz/jupytext.vim',
|
||||||
|
config = function()
|
||||||
|
vim.cmd([[ let g:jupytext_enable = 1 ]])
|
||||||
|
end
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,18 +5,18 @@ return {
|
|||||||
-- place this in one of your configuration file(s)
|
-- place this in one of your configuration file(s)
|
||||||
local hop = require('hop')
|
local hop = require('hop')
|
||||||
hop.setup()
|
hop.setup()
|
||||||
local directions = require('hop.hint').HintDirection
|
-- local directions = require('hop.hint').HintDirection
|
||||||
vim.keymap.set('', 'f', function()
|
-- vim.keymap.set('', 'f', function()
|
||||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false })
|
-- hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false })
|
||||||
end, {remap=true})
|
-- end, {remap=true})
|
||||||
vim.keymap.set('', 'F', function()
|
-- vim.keymap.set('', 'F', function()
|
||||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false })
|
-- hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false })
|
||||||
end, {remap=true})
|
-- end, {remap=true})
|
||||||
vim.keymap.set('', 't', function()
|
-- vim.keymap.set('', 't', function()
|
||||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 })
|
-- hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 })
|
||||||
end, {remap=true})
|
-- end, {remap=true})
|
||||||
vim.keymap.set('', 'T', function()
|
-- vim.keymap.set('', 'T', function()
|
||||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 })
|
-- hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 })
|
||||||
end, {remap=true})
|
-- end, {remap=true})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
return {
|
|
||||||
'gsuuon/note.nvim',
|
|
||||||
config = true
|
|
||||||
}
|
|
||||||
27
.config/nvim/lua/plugins/rainbow.lua
Normal file
27
.config/nvim/lua/plugins/rainbow.lua
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
return {
|
||||||
|
'HiPhish/rainbow-delimiters.nvim',
|
||||||
|
config = function()
|
||||||
|
-- This module contains a number of default definitions
|
||||||
|
local rainbow_delimiters = require 'rainbow-delimiters'
|
||||||
|
|
||||||
|
vim.g.rainbow_delimiters = {
|
||||||
|
strategy = {
|
||||||
|
[''] = rainbow_delimiters.strategy['global'],
|
||||||
|
vim = rainbow_delimiters.strategy['local'],
|
||||||
|
},
|
||||||
|
query = {
|
||||||
|
[''] = 'rainbow-delimiters',
|
||||||
|
lua = 'rainbow-blocks',
|
||||||
|
},
|
||||||
|
highlight = {
|
||||||
|
'RainbowDelimiterRed',
|
||||||
|
'RainbowDelimiterYellow',
|
||||||
|
'RainbowDelimiterBlue',
|
||||||
|
'RainbowDelimiterOrange',
|
||||||
|
'RainbowDelimiterGreen',
|
||||||
|
'RainbowDelimiterViolet',
|
||||||
|
'RainbowDelimiterCyan',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
'simrat39/symbols-outline.nvim',
|
'hedyhli/outline.nvim',
|
||||||
config = true
|
config = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
'mizlan/iswap.nvim',
|
'mizlan/iswap.nvim',
|
||||||
'romgrk/nvim-treesitter-context',
|
'romgrk/nvim-treesitter-context',
|
||||||
'HiPhish/nvim-ts-rainbow2',
|
|
||||||
'Wansmer/sibling-swap.nvim',
|
'Wansmer/sibling-swap.nvim',
|
||||||
--"nvim-treesitter/nvim-treesitter-textobjects",
|
--"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
--"nvim-treesitter/playground",
|
--"nvim-treesitter/playground",
|
||||||
@@ -79,25 +78,6 @@ return {
|
|||||||
node_decremental = "td",
|
node_decremental = "td",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rainbow = {
|
|
||||||
enable = false,
|
|
||||||
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
|
|
||||||
extended_mode = false, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
|
||||||
max_file_lines = 5000, -- Do not enable for files with more than n lines, int
|
|
||||||
-- colors = {}, -- table of hex strings
|
|
||||||
-- termcolors = {} -- table of colour name strings
|
|
||||||
},
|
|
||||||
--textobjects = {
|
|
||||||
-- swap = {
|
|
||||||
-- enable = true,
|
|
||||||
-- swap_next = {
|
|
||||||
-- ["tan"] = "@parameter.inner",
|
|
||||||
-- },
|
|
||||||
-- swap_previous = {
|
|
||||||
-- ["tap"] = "@parameter.inner",
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
--},
|
|
||||||
matchup = {
|
matchup = {
|
||||||
enable = true,
|
enable = true,
|
||||||
-- disable = { "c", "ruby" },
|
-- disable = { "c", "ruby" },
|
||||||
|
|||||||
Reference in New Issue
Block a user