You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin is a temporary solution until the project is mature enough to be integrated into [mason.nvim](https://github.com/williamboman/mason.nvim) and [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig).
The plugin takes advantage of lazy.nvim's spec loading by providing a `lazy.lua` at the root of the repository to handle setup and runtime path configuration automatically. This handles adding the plugin subdirectory to Neovim's runtime path and initializing the LSP client:
26
+
27
+
```lua
28
+
{
29
+
"joshuadavidthomas/django-language-server",
30
+
dependencies= {
31
+
"neovim/nvim-lspconfig",
32
+
},
33
+
config=function(plugin, opts)
34
+
vim.opt.rtp:append(plugin.dir.."/editors/nvim")
35
+
require("djls").setup(opts)
36
+
end,
37
+
}
38
+
```
39
+
40
+
The spec can also serve as a reference for a more detailed installation if needed or desired.
> This plugin is a temporary solution until the project is mature enough to be integrated into [mason.nvim](https://github.com/williamboman/mason.nvim) and [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig).
The plugin takes advantage of lazy.nvim's spec loading by providing a `lazy.lua` at the root of the repository to handle setup and runtime path configuration automatically. This handles adding the plugin subdirectory to Neovim's runtime path and initializing the LSP client:
21
+
22
+
```lua
23
+
{
24
+
"joshuadavidthomas/django-language-server",
25
+
dependencies= {
26
+
"neovim/nvim-lspconfig",
27
+
},
28
+
config=function(plugin, opts)
29
+
vim.opt.rtp:append(plugin.dir.."/editors/nvim")
30
+
require("djls").setup(opts)
31
+
end,
32
+
}
33
+
```
34
+
35
+
The spec can also serve as a reference for a more detailed installation if needed or desired.
0 commit comments