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

Optimizations for my use #142

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Contributing

## Testing

To run the C tests, you need the project ![examiner](https://github.com/Conni2461/examiner)

Options:
You can setup examiner as a submodule in the current directory and use `make test`.
You can install examiner on your system and dynamically link using `make test_dyn_link`
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS += -Wall -Werror -fpic -std=gnu99
CFLAGS += -std=gnu2x -Wall -Wextra -Werror -Wpedantic -pedantic-errors -fpic -Wsign-conversion -Wformat=2 -Wshadow -Wvla -fstack-protector-all

ifeq ($(OS),Windows_NT)
CC = gcc
Expand Down Expand Up @@ -26,7 +26,10 @@ build/$(TARGET): src/fzf.c src/fzf.h
build/test: build/$(TARGET) test/test.c
$(CC) -Og -ggdb3 $(CFLAGS) test/test.c -o build/test -I./src -L./build -lfzf -lexaminer

.PHONY: lint format clangdhappy clean test ntest
build/l: build/$(TARGET) test/test.c
$(CC) -Og -ggdb3 $(CFLAGS) test/main.c -o build/main -I./src -L./build -lfzf -lexaminer

.PHONY: lint format test test_dyn_link l ntest clangdhappy clean
lint:
luacheck lua

Expand All @@ -36,6 +39,12 @@ format:
test: build/test
@LD_LIBRARY_PATH=${PWD}/build:${PWD}/examiner/build:${LD_LIBRARY_PATH} ./build/test

test_dyn_link: build/test
@LD_LIBRARY_PATH=/usr/local/lib:./build:${LD_LIBRARY_PATH} ./build/test

l:
@LD_LIBRARY_PATH=/usr/local/lib:./build:${LD_LIBRARY_PATH} ./build/main

ntest:
nvim --headless --noplugin -u test/minrc.vim -c "PlenaryBustedDirectory test/ { minimal_init = './test/minrc.vim' }"

Expand Down
85 changes: 0 additions & 85 deletions lua/fzf_lib.lua

This file was deleted.

202 changes: 0 additions & 202 deletions lua/telescope/_extensions/fzf.lua

This file was deleted.

Loading