An open API service indexing awesome lists of open source software.

https://github.com/duckdm/lookie

Bookmark plugin for neovim
https://github.com/duckdm/lookie

bookmark marker neovim neovim-plugin nvim nvim-plugin

Last synced: about 1 month ago
JSON representation

Bookmark plugin for neovim

Awesome Lists containing this project

README

          

# Lookie

Bookmark plugin for neovim.

## Available methods

```lua
--- Add/remove marker
require("lookie").add()

--- Open lookie
require("lookie").open()
```

## Example setup with lazy

```lua
{
'duckdm/lookie',
--- See default config
opts= {},
keys = {
{ "m", function() require("lookie").add() end, { desc = "Add/remove lookie marker" } },
{ "M", function() require("lookie").open() end, { desc = "Open lookie" } },
}
}
```

## Default config

```lua
{
---@type string|"cwd"|function(): string Data location. If set to "cwd" it will save data to current working directory ([cwd]/.lookie/[file_name])
data_path = vim.fn.stdpath("cache") .. "/duckdm/lookie/",

---@type table Marker typess
types = {
info = {
hl = "LookieInfo",
icon = "",
fg = "#00aaff",
bg = "#003366",
},
danger = {
hl = "LookieDanger",
icon = "",
fg = "#ff0000",
bg = "#330000",
},
warning = {
hl = "LookieWarning",
icon = "",
fg = "#ffaa00",
bg = "#663300",
},
success = {
hl = "LookieSuccess",
icon = "",
fg = "#00ff00",
bg = "#003300",
},
},
}
```