doctorfree / nvim-lazyman

Neovim configuration manager and Lazy/Lua/Mason based Neovim config. Manage multiple Neovim configurations with the lazyman command. ☕
https://lazyman.dev
MIT License
263 stars 8 forks source link

Configuration menu changes require GNU sed #26

Closed doctorfree closed 1 year ago

doctorfree commented 1 year ago

Default /usr/bin/sed on macOS does not work with the following sed line in the Config Menu:

#!/bin/bash

NVIMCONF="${HOME}/.config/nvim-Lazyman/lua/configuration.lua"
confval="gopls"
marker="LSP_SERVERS"

cat "${NVIMCONF}" \
  | sed -e "s/  \"${confval}\",[[:space:]]\+--[[:space:]]\+${marker}/  -- \"${confval}\", -- ${marker}/" >/tmp/conftest.lua

Other config menu entries likely fail. Either alter the sed command or explicitly require GNU sed on a Mac.

doctorfree commented 1 year ago

Fixed in latest releases, sed now uses POSIX compliant syntax