seltabl-lsp

command module
v0.0.0-...-35a654b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 3 Imported by: 0

README

seltabl-lsp

This is a language server for seltabl.

Installation

go install github.com/conneroisu/seltabl/tools/seltabl-lsp@latest

Usage

Neovim
---@diagnostic disable-next-line: missing-fields
local client = vim.lsp.start {
	name = "tools",
	cmd = { "path to seltabl-lsp binary" },
	on_attach = require("lsp_attach").on_attach,
}

if not client then
	vim.notify("Failed to start seltabl-lsp")
	print("Failed to start seltabl-lsp")
	return
end


vim.api.nvim_create_autocmd("FileType", {
	pattern = "go",
	callback = function()
		local bufnr = vim.api.nvim_get_current_buf()
		vim.lsp.buf_attach_client(bufnr, client)
	end
})

Manual Usage

seltabl-lsp

Development

Run tests
go test ./...

Documentation

Overview

Package main is the entry point for the command line tool a language server for the seltabl package called seltabl-lsp.

Directories

Path Synopsis
Package cmd is the entry point for the command line tool a language server for the seltabl package.
Package cmd is the entry point for the command line tool a language server for the seltabl package.
Package data provides a set of data types for the database.
Package data provides a set of data types for the database.
generic
Package generic provides a generic interface for a database.
Package generic provides a generic interface for a database.
master
Package master contains the sqlite database schema
Package master contains the sqlite database schema
internal
config
Package config provides a set of functions for managing the configuration folder for the lanaguage server.
Package config provides a set of functions for managing the configuration folder for the lanaguage server.
pkg
analysis
Package analysis provides the functionality for analyzing a document.
Package analysis provides the functionality for analyzing a document.
lsp
Package lsp provides a set of types and functions for working with the LSP protocol.
Package lsp provides a set of types and functions for working with the LSP protocol.
parsers
Package parsers provides functions for parsing comments in Go source code.
Package parsers provides functions for parsing comments in Go source code.
rpc
Package rpc implements the RPC protocol for the seltabl language server.
Package rpc implements the RPC protocol for the seltabl language server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL