aboutsummaryrefslogtreecommitdiff
path: root/env/.config/nvim
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2025-12-29 02:42:08 -0600
committericeyrazor <iceyrazor@mailfence.com>2025-12-29 02:42:08 -0600
commit0300e55167f1df80b6dddf946bb16a2c063b6d67 (patch)
tree2fb07df62c530e15fabbd6bcfaf2d7f1bd73505f /env/.config/nvim
parent5c4872f306338944e0bbaa60db7157c5c828028d (diff)
Squashed commit of the following:
- set icons for mon2 in i3 - exluded a blender render dir - two flash backup thingys - lfrc filebrowser dectetion and formatting - changed music dir for mpd - moved browser backup to its own script. log too big - added DIAGRAM_PLANTUML_CLASSPATH var for plantuml - added web reqs script - added asciidoc preview - fixed ft_to_lang error by disabling treesitter in telescope - copy media script
Diffstat (limited to 'env/.config/nvim')
-rw-r--r--env/.config/nvim/after/plugin/asciidoc-preview.lua30
-rwxr-xr-xenv/.config/nvim/after/plugin/telescope.lua5
-rwxr-xr-xenv/.config/nvim/lua/yourmom/packer.lua6
3 files changed, 40 insertions, 1 deletions
diff --git a/env/.config/nvim/after/plugin/asciidoc-preview.lua b/env/.config/nvim/after/plugin/asciidoc-preview.lua
new file mode 100644
index 0000000..a80bd7f
--- /dev/null
+++ b/env/.config/nvim/after/plugin/asciidoc-preview.lua
@@ -0,0 +1,30 @@
+local ok, asciidoc = pcall(require, 'asciidoc-preview')
+if ok then
+ asciidoc.setup({
+ server = {
+ -- Specifies how the AsciiDoc file is converted to HTML for the preview.
+ -- `js` - asciidoctor.js (no local installation needed)
+ -- `cmd` - asciidoctor command (local installation needed)
+ converter = 'cmd',
+
+ -- Specifies the hostname or IP address of the preview website for the client.
+ -- This is only needed if you run neovim in a remote session and
+ -- want to access the preview website from another machine.
+ hostname = 'localhost',
+
+ -- Specifies the port of the preview website on the client and server side.
+ -- Must be between 10000 and 65535.
+ port = 11235,
+ },
+ preview = {
+ -- Specifies the scroll position of the preview website.
+ -- `current` - Keep current scroll position
+ -- `start` - Start of the website
+ -- `sync` - (experimental) Same (similar) position as in Neovim
+ -- => inaccurate, because very content dependent
+ position = 'current',
+ },
+ })
+ vim.keymap.set('n', '<leader>max', ':AsciiDocPreview<cr>')
+ vim.keymap.set('n', '<leader>mas', ':AsciiDocPreviewStop<cr>')
+end
diff --git a/env/.config/nvim/after/plugin/telescope.lua b/env/.config/nvim/after/plugin/telescope.lua
index 9d4488f..fcf62b8 100755
--- a/env/.config/nvim/after/plugin/telescope.lua
+++ b/env/.config/nvim/after/plugin/telescope.lua
@@ -9,7 +9,10 @@ if ok then
["d"] = action.delete_buffer,
["q"] = action.close,
}
- }
+ },
+ preview = {
+ treesitter = false,
+ },
},
pickers = {
find_files = {
diff --git a/env/.config/nvim/lua/yourmom/packer.lua b/env/.config/nvim/lua/yourmom/packer.lua
index d6115f7..317471e 100755
--- a/env/.config/nvim/lua/yourmom/packer.lua
+++ b/env/.config/nvim/lua/yourmom/packer.lua
@@ -93,4 +93,10 @@ return require('packer').startup(function(use)
-- requires = { 'echasnovski/mini.icons', opt = true }, -- if you use standalone mini plugins
-- requires = { 'nvim-tree/nvim-web-devicons', opt = true }, -- if you prefer nvim-web-devicons
})
+
+
+ use({
+ 'tigion/nvim-asciidoc-preview',
+ run = 'cd server && npm install --omit=dev',
+ })
end)