Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makefile windows defaults #1278

Open
IbrahimHindawi opened this issue Dec 30, 2024 · 1 comment
Open

makefile windows defaults #1278

IbrahimHindawi opened this issue Dec 30, 2024 · 1 comment

Comments

@IbrahimHindawi
Copy link

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/
@xudyang1
Copy link
Contributor

xudyang1 commented Jan 2, 2025

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 ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants