npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

obsidian-lsp

v1.0.5

Published

LSP server for operating the note-taking system Obsidian

Downloads

1

Readme

obsidian-lsp : Language Server for Obsidian.md

Screen record

Motivation

Obsidian.md is a fantastic tool that enables you to create your own Wiki using Markdown. It's not only convenient but also boasts an iOS app that makes viewing easy. However, my goal was to further enhance this experience by allowing the use of any text editor like Neovim. The need for such flexibility is what led me to the development of this LSP server for Obsidian.md. It aims to make editing your Obsidian notes more efficient and flexible, all in your editor of choice.

Features

The Obsidian.md LSP server provides the following main features:

  • [x] textDocument/completion: Provides search within the Vault and autocompletion of links, enabling efficient navigation within your wiki.

  • [x] textDocument/codeAction: If the alias on WikiLink is not listed in the alias settings in the document's frontmatter, add the string into the alias entry in the document's frontmatter.

  • [x] textDocument/publishDiagnostics: Detects and alerts you of broken or empty links, ensuring the consistency and integrity of your wiki.

  • [x] textDocument/definition: Allows you to jump directly to a page from its link, aiding swift exploration within your wiki.

  • [x] textDocument/hover: Displays the content of the linked article in a hover-over preview, saving you the need to follow the link.

  • [x] textDocument/rename: When Rename is performed on a document being edited, the string of the renamed symbol is added to the alias. If the title has not been set, it will also be set to the title of the document.

  • [ ] textDocument/references: (Will) display a list of all articles that contain a link to a specific article, helping you understand the context and relationships of your notes. This feature is currently under development.

  • [ ] workspace/symbol: (Will) enable searching for symbols across the entire workspace, helping you quickly locate specific topics or keywords. This feature is currently under development.

The Obsidian.md LSP server makes your Obsidian usage more potent and efficient. You can edit your Obsidian Wiki in your preferred editor, maximising its potential.

How to use?

This is not a plugin itself and does not provide each function directly to the editor. If you still want to try it, you can access each function with the following settings.

Neovim

vim.api.nvim_create_autocmd("BufRead", {
	pattern = "*.md",
	callback = function()
		local lspconfig = require('lspconfig')
		local configs = require('lspconfig.configs')
		if not configs.obsidian then
			configs.obsidian = {
				default_config = {
					cmd = { "npx", "obsidian-lsp", "--", "--stdio" },
					single_file_support = false,
					root_dir = lspconfig.util.root_pattern ".obsidian",
					filetypes = { 'markdown' },
				},
			}
		end
		lspconfig.obsidian.setup {}
	end,
})

Related Projects