summaryrefslogtreecommitdiff
path: root/nvim/lsp/nickel_ls.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/nickel_ls.lua
Nixos
Diffstat (limited to 'nvim/lsp/nickel_ls.lua')
-rwxr-xr-xnvim/lsp/nickel_ls.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/nvim/lsp/nickel_ls.lua b/nvim/lsp/nickel_ls.lua
new file mode 100755
index 0000000..1f70402
--- /dev/null
+++ b/nvim/lsp/nickel_ls.lua
@@ -0,0 +1,30 @@
+---@brief
+---
+--- Nickel Language Server
+---
+--- https://github.com/tweag/nickel
+---
+--- `nls` can be installed with nix, or cargo, from the Nickel repository.
+--- ```sh
+--- git clone https://github.com/tweag/nickel.git
+--- ```
+---
+--- Nix:
+--- ```sh
+--- cd nickel
+--- nix-env -f . -i
+--- ```
+---
+--- cargo:
+--- ```sh
+--- cd nickel/lsp/nls
+--- cargo install --path .
+--- ```
+---
+--- In order to have lspconfig detect Nickel filetypes (a prerequisite for autostarting a server),
+--- install the [Nickel vim plugin](https://github.com/nickel-lang/vim-nickel).
+return {
+ cmd = { 'nls' },
+ filetypes = { 'ncl', 'nickel' },
+ root_markers = { '.git' },
+}