Skip to content

hisbaan/dataview.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dataview.nvim

A Neovim plugin for executing obsidian-dataview queries. This plugin is meant to complement the great obsidian.nvim.

Features

Coming soon

Commands

  • :DataviewCompile to get the result of the current query. This is the query your cursor is over.

Demo

Coming Soon

Setup

Install

Using lazy.nvim

{
    "hisbaan/dataview.nvim",
    -- only load dataview.nvim for files in your obsidian vault
    event = {
        "BufEnter " .. vim.fn.expand "~" .. "/path-to-my-vault**",
    },
    -- configuration here, see below for full configuration options
    opts = {
        vault_dir = "path/to/vault",
        buffer_type = "float", -- float | split | vsplit | tab
    }
}

Configure

This is a complete list of all the options that can be passed to require("dataview").setup() or the lazy opts table. The values displayed are the defaults

{
    -- Required, the path to your obsidian vault against which queries will be run
    vault_dir = "path/to/vault",
    -- Optional, the type of window to open to display the result of a dataview query
    -- One of `float`, `split`, `vsplit`, or `tab`. Defaults to `float`
    buffer_type = "float",
}

About

A port of obsidian-dataview for neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages