Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
/ lsp-rooter.nvim Public archive

lsp-rooter.nvim is a neovim plugin written in lua to change the current working directory to the project's root directory automagically using nvim native lsp.

License

Notifications You must be signed in to change notification settings

ahmedkhalf/lsp-rooter.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ WARNING ⚠️ This plugin is now deprecated, please use project.nvim instead.

🌳 lsp-rooter.nvim

Lsp Rooter is a neovim plugin written in lua to change the current working directory to the project's root directory automagically using nvim native lsp.

✨ Features

  • Automagically cd to project directory using nvim lsp
  • Dependency free, does not rely on lspconfig
  • Nvim-tree.lua support/integration

⚡️ Requirements

  • Neovim >= 0.5.0

📦 Installation

Install the plugin with your preferred package manager:

" Vim Script
Plug 'ahmedkhalf/lsp-rooter.nvim'

lua << EOF
  require("lsp-rooter").setup {
    -- your configuration comes here
    -- or leave it empty to use the default settings
    -- refer to the configuration section below
  }
EOF
-- Lua
use {
  "ahmedkhalf/lsp-rooter.nvim",
  config = function()
    require("lsp-rooter").setup {
      -- your configuration comes here
      -- or leave it empty to use the default settings
      -- refer to the configuration section below
    }
  end
}

⚙️ Configuration

Lsp Rooter comes with the following defaults:

{
  -- Table of lsp clients to ignore by name
  -- eg: {"efm", ...}
  ignore_lsp = {},
}

🚀 Usage

Lsp Rooter works automatically

🗒️ TODO

  • Support non-LSP projects (#2)
  • Add manual control using :rooter

🤝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


# This project is libre, and licenced under the terms of the
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENCE, version 3.1,
# as published by dtf, July 2019. See the COPYING file or
# https://ph.dtf.wtf/u/wtfplv31 for more details.

About

lsp-rooter.nvim is a neovim plugin written in lua to change the current working directory to the project's root directory automagically using nvim native lsp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published