Skip to content

Commit

Permalink
reordered README to align with doc config ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
chomosuke committed May 6, 2024
1 parent 92ca684 commit e554f46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ require 'typst-preview'.setup {
-- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview'
open_cmd = nil,

-- 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
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
Expand All @@ -92,11 +100,6 @@ require 'typst-preview'.setup {
['websocat'] = nil
},

-- 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
invert_colors = 'never',

-- This function will be called to determine the root of the typst project
get_root = function(path_of_main_file)
return vim.fn.fnamemodify(path_of_main_file, ':p:h')
Expand All @@ -107,9 +110,6 @@ require 'typst-preview'.setup {
get_main_file = function(path_of_buffer)
return path_of_buffer
end,

-- Whether the preview will follow the cursor in the source file
follow_cursor = true,
}
```

Expand Down

0 comments on commit e554f46

Please sign in to comment.