From 4b7e56c757f781274615e7ab959899649432a409 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 11 Apr 2023 07:39:46 +0200 Subject: [PATCH] feat: replace sumneko with lua-language-server --- home-manager/neovim/default.nix | 2 +- home-manager/neovim/lspconfig.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index ff6f38c..153f1ec 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -49,7 +49,7 @@ in xclip # language servers - sumneko-lua-language-server + lua-language-server rnix-lsp terraform-ls tflint diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index c023f00..844c1ca 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -50,10 +50,10 @@ lsp_status.register_progress() -- setup lua language server for init.nvim and nvim plugin development require("neodev").setup({ - override = function(root_dir, library) + override = function(root_dir, options) if require("neodev.util").has_file(root_dir, "/etc/nixos") then - library.enabled = true - library.plugins = true + options.enabled = true + options.plugins = true end end, }) @@ -63,6 +63,7 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities(lsp_status.cap local servers = { ["bashls"] = {}, ["dockerls"] = {}, + ["lua_ls"] = {}, ["pylsp"] = { pylsp = { plugins = { @@ -74,7 +75,6 @@ local servers = { }, ["pyright"] = {}, ["rnix"] = {}, - ["sumneko_lua"] = {}, ["terraformls"] = {}, ["tflint"] = {}, ["tsserver"] = {},