https://github.com/neandertech/nvim-langoustine
https://github.com/neandertech/nvim-langoustine
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/neandertech/nvim-langoustine
- Owner: neandertech
- Created: 2022-12-22T17:15:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T18:32:19.000Z (over 3 years ago)
- Last Synced: 2025-01-24T14:22:08.100Z (over 1 year ago)
- Language: Lua
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This plugin provides a VERY basic automation to restart any LSP client
with [tracing](https://neandertech.github.io/langoustine/tracer.html) enabled.
```lua
use({
"neandertech/nvim-langoustine",
requires = {
{ "nvim-telescope/telescope.nvim" }
},
})
```
It is packaged as a Telescope extension, so you will need to load it as such (this goes into your `init.lua`):
```lua
require('telescope').load_extension 'langoustine'
```
You can then invoke (or bind to a hotkey) the following command:
```lua
:Telescope langoustine enable_lsp_tracer
```
What this plugin does is replace the original command `cmd` which was used to start LSP server
with a modified command that prepends langoustine tracer parameters.
By default it prepends `langoustine-tracer trace` - assuming you have a `langoustine-tracer` binary set up
globally.
You can modify that by configuring the extensions section when you set up telescope:
```lua
require("telescope").setup({
extensions = {
langoustine = {
command_prefix = { "langoustine-tracer-dev", "trace" }
}
}
})
```