l

linkls

v3a7b58elibrary

No description provided.

0 stars0 forksUnknownupdated 1 year ago
Open repo

LINKLS

A toy language server implementing goto definition for #tag bringing you to the first occurrence of [tag].

Configuration

Neovim

local lspconfig = require 'lspconfig'
local configs = require 'lspconfig.configs'

configs.linkls = {
    default_config = {
        cmd = { 
            -- in PATH
            "linkls",
            -- local path
            -- vim.fn.expand("~/path/to/binary")
        },
        
        init_options = {
            -- which paths to ignore when searching
            ignore_files = {".git", "node_modules" }
        }
    },
}
lspconfig.linkls.setup {}

Building

odin build .
# with leak checking and logging to /tmp/linkls.log
odin build . -debug

TODO

  • use struct tagging for json (un)marshalling to produce better names
  • improve handover of init options from lsp package to app package
  • searching on demand is kinda slow ... one could search every file in the background and monitor for file changes refreshing the index when needed.
Package Info
Version
v3a7b58e
License
Unknown
Author
@Sojamann
Type
library
Forks
0
Created
1 year ago
Updated
1 year ago
Health
maintained
has releases
has readme
has license
Activity
last 56 weeks