seltabls

command module
v0.0.0-...-4fcc4bf Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 4 Imported by: 0

README

seltabls

This is a language server for seltabl.

Installation

go install github.com/conneroisu/seltabl/tools/seltabls@latest

Usage

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

if not client then
	vim.notify("Failed to start seltabls")
	print("Failed to start seltabls")
	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

Base Command:

seltabls

Generate a new seltabl struct:

seltabls generate

Get the configuration for the cwd:

seltabls config

Development

Run tests

Using makefile (generally used for CI) one can run the tests with:

make test

Using taskfile (generally used for local development), one can run the tests with:

task test

Manually, one can run the tests with:

go test ./...

Documentation

Overview

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

Directories

Path Synopsis
cmd
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.
cmds
Package cmds contains the commands for the CLI.
Package cmds contains the commands for the CLI.
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.
logs
Package logs contains the sqlite database schema
Package logs contains the sqlite database schema
master
Package master contains the sqlite database schema
Package master contains the sqlite database schema
pkg
analysis
Package analysis provides the functionality for analyzing a document.
Package analysis provides the functionality for analyzing a document.
http
Package http provides a set of types and functions for working with the http protocol.
Package http provides a set of types and functions for working with the http protocol.
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.
lsp/methods
Package methods provides the methods for the LSP protocol.
Package methods provides the methods for the LSP protocol.
rpc
Package rpc implements the RPC protocol for the seltabl language server.
Package rpc implements the RPC protocol for the seltabl language server.
rpc/errors
Package errors provides the error codes for the RPC protocol.
Package errors provides the error codes for the RPC protocol.
safe
Package safe provides a thread safe way to handle maps.
Package safe provides a thread safe way to handle maps.
server
Package server is the main package for the server.
Package server is the main package for the server.

Jump to

Keyboard shortcuts

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