Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nvim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iliya.saroukha
nvim
Commits
c9301fd3
Verified
Commit
c9301fd3
authored
7 months ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
feat: added peek.nvim, replacing markdown-preview
parent
063f8e57
No related branches found
No related tags found
1 merge request
!1
feat: v2 config fully working, setting it as the default from now on
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lua/plugins/peek.lua
+32
-0
32 additions, 0 deletions
lua/plugins/peek.lua
with
32 additions
and
0 deletions
lua/plugins/peek.lua
0 → 100644
+
32
−
0
View file @
c9301fd3
return
{
"toppair/peek.nvim"
,
event
=
{
"VeryLazy"
},
build
=
"deno task --quiet build:fast"
,
config
=
function
()
-- default config:
require
(
'peek'
).
setup
({
auto_load
=
true
,
-- whether to automatically load preview when
-- entering another markdown buffer
close_on_bdelete
=
true
,
-- close preview window on buffer delete
syntax
=
true
,
-- enable syntax highlighting, affects performance
theme
=
'dark'
,
-- 'dark' or 'light'
update_on_change
=
true
,
app
=
'browser'
,
-- 'webview', 'browser', string or a table of strings
-- explained below
filetype
=
{
'markdown'
},
-- list of filetypes to recognize as markdown
-- relevant if update_on_change is true
throttle_at
=
200000
,
-- start throttling when file exceeds this
-- amount of bytes in size
throttle_time
=
'auto'
,
-- minimum amount of time in milliseconds
-- that has to pass before starting new render
})
vim
.
api
.
nvim_create_user_command
(
"PeekOpen"
,
require
(
"peek"
).
open
,
{})
vim
.
api
.
nvim_create_user_command
(
"PeekClose"
,
require
(
"peek"
).
close
,
{})
end
,
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment