Compare commits
2 Commits
918c52f6f3
...
2f31b86e65
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f31b86e65 | |||
| 6acb9b9aaa |
@@ -32,6 +32,8 @@ set -l GCR_SSH_SOCK $XDG_RUNTIME_DIR/gcr/ssh
|
|||||||
if test -S "$GCR_SSH_SOCK"
|
if test -S "$GCR_SSH_SOCK"
|
||||||
set -gx SSH_AUTH_SOCK "$GCR_SSH_SOCK"
|
set -gx SSH_AUTH_SOCK "$GCR_SSH_SOCK"
|
||||||
end
|
end
|
||||||
if uwsm check may-start && uwsm select
|
if status is-login && test -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY"
|
||||||
exec uwsm start default
|
if uwsm check may-start && uwsm select
|
||||||
|
exec uwsm start default
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ require('mini.deps').setup()
|
|||||||
|
|
||||||
local add = MiniDeps.add
|
local add = MiniDeps.add
|
||||||
|
|
||||||
|
add({
|
||||||
|
source = 'chomosuke/typst-preview.nvim'
|
||||||
|
})
|
||||||
add({
|
add({
|
||||||
source = 'williamboman/mason.nvim'
|
source = 'williamboman/mason.nvim'
|
||||||
})
|
})
|
||||||
@@ -279,6 +282,72 @@ vim.keymap.set('n', '<leader>l', '<cmd>wincmd l<cr>')
|
|||||||
vim.keymap.set('n', '<leader>j', '<cmd>wincmd j<cr>')
|
vim.keymap.set('n', '<leader>j', '<cmd>wincmd j<cr>')
|
||||||
vim.keymap.set('n', '<leader>k', '<cmd>wincmd k<cr>')
|
vim.keymap.set('n', '<leader>k', '<cmd>wincmd k<cr>')
|
||||||
|
|
||||||
|
require 'typst-preview'.setup {
|
||||||
|
-- Setting this true will enable logging debug information to
|
||||||
|
-- `vim.fn.stdpath 'data' .. '/typst-preview/log.txt'`
|
||||||
|
debug = false,
|
||||||
|
|
||||||
|
-- Custom format string to open the output link provided with %s
|
||||||
|
-- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview'
|
||||||
|
open_cmd = nil,
|
||||||
|
|
||||||
|
-- Custom port to open the preview server. Default is random.
|
||||||
|
-- Example: port = 8000
|
||||||
|
port = 0,
|
||||||
|
|
||||||
|
-- Custom host to bind the preview server to.
|
||||||
|
-- Note that '0.0.0.0' is not supported and [won't be](https://github.com/Myriad-Dreamin/tinymist/issues/2105)
|
||||||
|
-- Example: host = '192.168.0.10'
|
||||||
|
host = '127.0.0.1',
|
||||||
|
|
||||||
|
-- Setting this to 'always' will invert black and white in the preview
|
||||||
|
-- Setting this to 'auto' will invert depending if the browser has enable
|
||||||
|
-- dark mode
|
||||||
|
-- Setting this to '{"rest": "<option>","image": "<option>"}' will apply
|
||||||
|
-- your choice of color inversion to images and everything else
|
||||||
|
-- separately.
|
||||||
|
invert_colors = 'never',
|
||||||
|
|
||||||
|
-- Whether the preview will follow the cursor in the source file
|
||||||
|
follow_cursor = true,
|
||||||
|
|
||||||
|
-- Provide the path to binaries for dependencies.
|
||||||
|
-- Setting this will skip the download of the binary by the plugin.
|
||||||
|
-- Warning: Be aware that your version might be older than the one
|
||||||
|
-- required.
|
||||||
|
dependencies_bin = {
|
||||||
|
['tinymist'] = '/home/narl/.local/share/nvim/mason/bin/tinymist',
|
||||||
|
['websocat'] = '/usr/bin/websocat'
|
||||||
|
},
|
||||||
|
|
||||||
|
-- A list of extra arguments (or nil) to be passed to previewer.
|
||||||
|
-- For example, extra_args = { "--input=ver=draft", "--ignore-system-fonts" }
|
||||||
|
extra_args = nil,
|
||||||
|
|
||||||
|
-- This function will be called to determine the root of the typst project
|
||||||
|
get_root = function(path_of_main_file)
|
||||||
|
local root = os.getenv 'TYPST_ROOT'
|
||||||
|
if root then
|
||||||
|
return root
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Look for a project marker so imports from parent dirs stay inside root
|
||||||
|
local main_dir = vim.fs.dirname(vim.fn.fnamemodify(path_of_main_file, ':p'))
|
||||||
|
local found = vim.fs.find({ 'typst.toml', '.git' }, { path = main_dir, upward = true })
|
||||||
|
if #found > 0 then
|
||||||
|
return vim.fs.dirname(found[1])
|
||||||
|
end
|
||||||
|
|
||||||
|
return main_dir
|
||||||
|
end,
|
||||||
|
|
||||||
|
-- This function will be called to determine the main file of the typst
|
||||||
|
-- project.
|
||||||
|
get_main_file = function(path_of_buffer)
|
||||||
|
return path_of_buffer
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
-- Rust
|
-- Rust
|
||||||
|
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
|
|||||||
1
systemd/user/default.target.wants/narl_io_mount.service
Symbolic link
1
systemd/user/default.target.wants/narl_io_mount.service
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/home/narl/.config/systemd/user/narl_io_mount.service
|
||||||
1
systemd/user/default.target.wants/vaulthunters_mount.service
Symbolic link
1
systemd/user/default.target.wants/vaulthunters_mount.service
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/home/narl/.config/systemd/user/vaulthunters_mount.service
|
||||||
21
systemd/user/narl_io_mount.service
Normal file
21
systemd/user/narl_io_mount.service
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# ~/.config/systemd/user/rclone-mount.service
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=sshfs mount for narl.io server
|
||||||
|
# This ensures your network is ready before it tries to mount
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# The command to start the mount.
|
||||||
|
# Replace "my-remote:" and "/path/to/local/mount" accordingly.
|
||||||
|
# The flags below are highly recommended for a good experience.
|
||||||
|
ExecStart=sshfs -f -p 420 narl@narl.io:/home/narl %h/narl_io
|
||||||
|
|
||||||
|
# The command to unmount gracefully.
|
||||||
|
ExecStop=fusermount -u %h/narl_io
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
# This tells systemd to start the service at user login.
|
||||||
|
WantedBy=default.target
|
||||||
22
systemd/user/vaulthunters_mount.service
Normal file
22
systemd/user/vaulthunters_mount.service
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
# ~/.config/systemd/user/rclone-mount.service
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=sshfs mount for narl.io vaulthunters server
|
||||||
|
# This ensures your network is ready before it tries to mount
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# The command to start the mount.
|
||||||
|
# Replace "my-remote:" and "/path/to/local/mount" accordingly.
|
||||||
|
# The flags below are highly recommended for a good experience.
|
||||||
|
ExecStart=sshfs -f narl@vh3.narl.io:/opt/minecraft_vaulthunters %h/vaulthunters_server/
|
||||||
|
|
||||||
|
# The command to unmount gracefully.
|
||||||
|
ExecStop=fusermount -u %h/vaulthunters_server
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
# This tells systemd to start the service at user login.
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user