⚙️ config(nvim): bindings for refactoring and image.nvim for image extra

This commit is contained in:
Sergio Laín 2023-11-06 12:34:05 +01:00
parent a419b1822a
commit 47547f4be9
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 34 additions and 1 deletions

View file

@ -7,6 +7,9 @@ if not vim.loop.fs_stat(lazypath) then
end end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath) vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua;"
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua;"
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- add LazyVim and import its plugins -- add LazyVim and import its plugins

View file

@ -14,6 +14,6 @@ return {
end, end,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<leader>cR", function() require('telescope').extensions.refactoring.refactors() end, mode = { "n", "x" }, desc = "Refactor" }, { "<leader>r", function() require('telescope').extensions.refactoring.refactors() end, mode = { "n", "x" }, desc = "Refactor" },
}, },
} }

View file

@ -2,8 +2,38 @@ return {
{ {
"edluffy/hologram.nvim", "edluffy/hologram.nvim",
lazy = true, lazy = true,
enabled = false,
opts = { opts = {
auto_display = true, -- WIP automatic markdown image display, may be prone to breaking auto_display = true, -- WIP automatic markdown image display, may be prone to breaking
}, },
}, },
{
"3rd/image.nvim",
event = "VeryLazy",
dependencies = { "nvim-treesitter/nvim-treesitter" },
opts = {
backend = "kitty",
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
},
neorg = {
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,
kitty_method = "normal",
},
},
} }