From f0807241fa8362e8916c8c0107671780729205e8 Mon Sep 17 00:00:00 2001 From: kenyzumm Date: Sun, 31 May 2026 17:35:20 +0200 Subject: [PATCH] comit --- init.lua | 6 ++++++ lazy-lock.json | 2 ++ lua/plugins/image.lua | 21 +++++++++++++++++++++ lua/plugins/render-markdown.lua | 33 +++++++++++++++++++++++++++++++++ lua/plugins/treesitter.lua | 6 ++++++ 5 files changed, 68 insertions(+) create mode 100644 lua/plugins/image.lua create mode 100644 lua/plugins/render-markdown.lua diff --git a/init.lua b/init.lua index 1b42722..ee7e31c 100644 --- a/init.lua +++ b/init.lua @@ -19,6 +19,12 @@ if not vim.loop.fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) +vim.filetype.add({ + extension = { + sage = "python" + } +}) + require("lazy").setup("plugins") local builtin = require("telescope.builtin") vim.keymap.set('n', '', builtin.find_files, {}) diff --git a/lazy-lock.json b/lazy-lock.json index e58d518..66075b4 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -6,6 +6,7 @@ "cmp-nvim-lua": { "branch": "main", "commit": "e3a22cb071eb9d6508a156306b102c45cd2d573d" }, "cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, + "image.nvim": { "branch": "master", "commit": "73a64613048216bda1a4f464bf7bed2dbaaf4cec" }, "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "2ab512d3d8e2fd1f679543c13e0dc4606c3d3d2e" }, "mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" }, @@ -19,5 +20,6 @@ "nvim-treesitter": { "branch": "main", "commit": "957f86ae3f049ab6681ed64c05b05768fcaed0d2" }, "nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, + "render-markdown.nvim": { "branch": "main", "commit": "629eb9533ec989d9d5c6cab8f3ad5372422c24e0" }, "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" } } diff --git a/lua/plugins/image.lua b/lua/plugins/image.lua new file mode 100644 index 0000000..f589c3e --- /dev/null +++ b/lua/plugins/image.lua @@ -0,0 +1,21 @@ +return { + "3rd/image.nvim", + build = false, -- nie wymaga kompilacji + opts = { + backend = "kitty", -- kitty / ueberzug / ueberzugpp + integrations = { + markdown = { + enabled = true, + clear_in_insert_mode = false, + download_remote_images = true, + only_render_image_at_cursor = false, + filetypes = { "markdown" }, + }, + }, + max_width = 100, + max_height = 30, + max_width_window_percentage = math.huge, + max_height_window_percentage = math.huge, + kitty_method = "normal", + }, +} diff --git a/lua/plugins/render-markdown.lua b/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..5d2e9c9 --- /dev/null +++ b/lua/plugins/render-markdown.lua @@ -0,0 +1,33 @@ +return { + "MeanderingProgrammer/render-markdown.nvim", + dependencies = { + "nvim-treesitter/nvim-treesitter", + "nvim-tree/nvim-web-devicons", + "3rd/image.nvim", + }, + ft = { "markdown" }, + opts = { + heading = { + enabled = true, + icons = { "󰲡 ", "󰲣 ", "󰲥 ", "󰲧 ", "󰲩 ", "󰲫 " }, + }, + code = { + enabled = true, + style = "full", + border = "thin", + }, + bullet = { + enabled = true, + icons = { "●", "○", "◆", "◇" }, + }, + checkbox = { + enabled = true, + unchecked = { icon = "󰄱 " }, + checked = { icon = "󰱒 " }, + }, + -- tabele i html wyłączone bo brak parserów + html = { enabled = false }, + latex = { enabled = false }, + -- usunięte "table = {}" które powodowało błąd + }, +} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index a6a684e..aaa13ea 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,5 +1,11 @@ return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", + opts = { + ensure_installed = { + "markdown", + "markdown_inline" + } + }, highlight = { enable = true } }