@lajna/amend-lsp-server
v1.2.1
Published
Language server for amend configuration files with hover, go-to-definition, and diagnostics support.
Maintainers
Readme
Amend LSP Server
A Language Server Protocol (LSP) implementation for amend configuration files, providing hover information, go-to-definition, and diagnostics support for JavaScript/TypeScript projects.
Features
- Hover: Shows documentation and metadata for amend configurations
- Go to Definition: Navigate to the source of amend definitions
- Diagnostics: Real-time error checking and validation
- Completion: Autocomplete support for amend configurations
Installation
npm install -g @lajna/amend-lsp-serverUsage
With Neovim
-- In your Neovim config
-- Add custom LSP server
local lspconfig = require 'lspconfig'
require('lspconfig.configs').amendLsp = {
default_config = {
cmd = { 'amend-lsp', '--stdio' },
filetypes = { 'javascript', 'typescript' },
root_dir = function(fname)
return require('lspconfig.util').root_pattern('package.json', 'tsconfig.json', '.git')(fname) or vim.fn.getcwd()
end,
settings = {},
},
}
lspconfig.amendLsp.setup {}Configuration
The server accepts the following configuration options:
maxNumberOfProblems: Maximum number of diagnostics to report (default: 100000)debug: Enable debug logging (default: false)
Requirements
- Node.js >= 18.0.0
License
MIT
Repository
https://github.com/LajnaLegenden/amend-lsp
