From 42ea0f97b11526d6b88b2c6e1c122ad8adb603d8 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 12 Mar 2024 15:33:48 +0000 Subject: [PATCH] WIP: setup lua LSP --- .nvim.lua | 18 ++++++++++++++++++ flake/dev-shells.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 .nvim.lua diff --git a/.nvim.lua b/.nvim.lua new file mode 100644 index 0000000..83b17a9 --- /dev/null +++ b/.nvim.lua @@ -0,0 +1,18 @@ +local lspconfig = require("lspconfig") + +-- FIXME: https://github.com/folke/neodev.nvim ? +lspconfig.lua_ls.setup({ + settings = { + Lua = { + runtime = { + version = "LuaJIT", + }, + workspace = { + checkThirdParty = false, + library = { + vim.env.VIMRUNTIME, + }, + }, + }, + }, +}) diff --git a/flake/dev-shells.nix b/flake/dev-shells.nix index d5f5989..6c07d95 100644 --- a/flake/dev-shells.nix +++ b/flake/dev-shells.nix @@ -7,6 +7,7 @@ nativeBuildInputs = with pkgs; [ gitAndTools.pre-commit + lua-language-server nixpkgs-fmt ];