aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/nixd.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lsp/nixd.lua')
-rw-r--r--.config/nvim/lsp/nixd.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/lsp/nixd.lua b/.config/nvim/lsp/nixd.lua
new file mode 100644
index 0000000..64ff08e
--- /dev/null
+++ b/.config/nvim/lsp/nixd.lua
@@ -0,0 +1,15 @@
+---@brief
+---
+--- https://github.com/nix-community/nixd
+---
+--- Nix language server, based on nix libraries.
+---
+--- If you are using Nix with Flakes support, run `nix profile install github:nix-community/nixd` to install.
+--- Check the repository README for more information.
+
+---@type vim.lsp.Config
+return {
+ cmd = { 'nixd' },
+ filetypes = { 'nix' },
+ root_markers = { 'flake.nix', '.git' },
+}