New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

basics-language-server

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basics-language-server

Buffer, path, and snippet completions

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90%
Maintainers
0
Weekly downloads
 
Created
Source

basics-language-server

Features:

  • Buffer completion - complete words that are already in the buffer
  • Path completion - complete file paths relative from buffer or absolute
  • Snippet completion - complete custom snippets or from packages (like friendly-snippets)

To install:

npm install -g basics-language-server

Usage with neovim

The server is available in nvim-lspconfig. Start the server with

require('lspconfig').basics_ls.setup({})

Settings

require('lspconfig').basics_ls.setup({
    settings = {
        buffer = {
            enable = true,
            minCompletionLength = 4 -- only provide completions for words longer than 4 characters
            matchStrategy = 'exact', -- or 'fuzzy'
        },
        path = {
            enable = true,
        },
        snippet = {
            enable = false,
            sources = {} -- paths to package containing snippets, see examples below
            matchStrategy = 'exact', -- or 'fuzzy'
        },
    }
})

Settings snippet sources

snippet.sources can be a string or a list of strings. The strings should be absolute paths (or globs that resolve to paths) to one of either:

  • Directory containing snippets. Example: '/home/user/snippets' which contains python.json
  • Directory containing package.json that defines per language snippets in a VS Code extension API format.
  • Path to package.json that defines per language snippets in a VS Code extension API format.
  • A json or jsonc file where its name is the language id and its content is snippets. Example: '/home/user/snippets/python.json'. See VS Code example for format

Keywords

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc