Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.4 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.4 KB

nvim-lsp-autoimport

Please read help for details.

Introduction

nvim-lsp-autoimport is Neovim plugin that automatically applies additionalTextEdits when an item is selected from the completion menu provided by nvim-lsp.

Requirements

This plugin requires the following plugins to be installed:

  • Shougo/ddc.vim
  • Shougo/pum.vim
  • Shougo/ddc-source-nvim-lua

Usage

Require the autoimport module in your init.lua file:

require("autoimport")

This plugin will automatically add import statements for symbols you use in your code.

Note

Currently, only python-lsp/python-lsp-server with rope is supported.

  • This is a personal project and its compatibility with other environments has not been sufficiently confirmed.
  • It has been tested with Shougo/ddc.vim, Shougo/pum.vim, and Shougo/ddc-source-nvim-lsp, and it strongly depends on Shougo/pum.vim in particular.
  • It has been confirmed to work only with python-lsp/python-lsp-server, and support for other LSPs is unconfirmed (due to lack of detailed knowledge of their compatibility status).

License

This plugin is licensed under the MIT License. See LICENSE for more information.