LuaSnip icon indicating copy to clipboard operation
LuaSnip copied to clipboard

makefile windows defaults

Open IbrahimHindawi opened this issue 1 year ago • 1 comments

Why can't we have these defaults for windows in the makefile? I don't wanna edit this every time (unless there is a better way?). These should work for most cases i guess?

# On Windows, you may need to set:
SHELL=C:/Program Files/Git/bin/sh.exe
.SHELLFLAGS=-c
CC=gcc
NEOVIM_BIN_PATH=C:/Program Files/Neovim/bin/

IbrahimHindawi avatar Dec 30 '24 04:12 IbrahimHindawi

What package manager do you use? If you use lazy.nvim, you can try:

local IN_WINDOWS = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
return {
  "L3MON4D3/LuaSnip",
  dependencies = { "rafamadriz/friendly-snippets" },
  build = IN_WINDOWS and "make install_jsregexp CC=gcc" or "make install_jsregexp",
  -- more ...
}

xudyang1 avatar Jan 02 '25 03:01 xudyang1