Skip to content

davidgranstrom/oblique-strategies.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Oblique Strategies

Oblique Strategies is a card-based method for promoting creativity jointly created by musician/artist Brian Eno and multimedia artist Peter Schmidt, first published in 1975.

oblique-screenshot

Installation

Using packer.nvim

use { 'davidgranstrom/oblique-strategies.nvim' }

Usage

--- Display an oblique strategy in a floating window.
---@return The window ID.
require('oblique-strategies').show()

--- Get an oblique strategy as a string.
---@return A string.
require('oblique-strategies').get()

Configuration

It is not necessary to call setup but the function is provided as a conveniece for styling and mapping.

require('oblique-strategies').setup{
  keymaps = {
    show = {
      n = '<F9>',
    },
  },
}

Default configuration

require('oblique-strategies').setup{
  win = {
    relative = 'editor',
    anchor = 'NW',
    width = 38,
    height = 7,
    focusable = false,
    border = 'single',
    style = 'minimal',
  },
  color = 'NormalFloat', -- built-in highlight-groups (:h winhl)
  keymaps = {},
}

Releases

No releases published

Packages

No packages published

Languages