remove smart-gen-tags integration
parent
fadd05a835
commit
eb3b9fbf0c
|
@ -22,9 +22,6 @@ in {
|
|||
pkgs.watch
|
||||
pkgs.universal-ctags
|
||||
|
||||
# local packages
|
||||
(pkgs.callPackage ../pkgs/smart-gen-tags { })
|
||||
|
||||
# remote packages. Probably could do this better but I don't really want to
|
||||
# at the moment.
|
||||
(import (fetchTarball "https://cachix.org/api/v1/install") { }).cachix
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
let
|
||||
similar-sort = pkgs.callPackage ../pkgs/similar-sort { };
|
||||
|
||||
smart-gen-tags = pkgs.callPackage ../pkgs/smart-gen-tags { };
|
||||
|
||||
sources = import ../nix/sources.nix;
|
||||
|
||||
nixfmt = import sources.nixfmt { };
|
||||
|
@ -380,8 +378,7 @@ in {
|
|||
nnoremap <leader>fh :History<CR>
|
||||
nnoremap <leader>fj :BLines<CR>
|
||||
nnoremap <leader>fl :Lines<CR>
|
||||
nnoremap <leader>fs :Ack<Space>
|
||||
nnoremap <leader>ft :Tags<CR>
|
||||
nnoremap <leader>ft :Ack<Space>
|
||||
|
||||
nmap <leader><leader> <plug>(fzf-maps-n)
|
||||
xmap <leader><leader> <plug>(fzf-maps-x)
|
||||
|
@ -393,11 +390,6 @@ in {
|
|||
nnoremap <leader>ec :Chmod
|
||||
nnoremap <leader>em :Mkdir
|
||||
|
||||
"" TAGS
|
||||
autocmd BufWritePost * silent !${smart-gen-tags}/bin/smart-gen-tags %
|
||||
|
||||
nnoremap <leader>a :Dispatch! ${smart-gen-tags}/bin/smart-gen-tags<CR>
|
||||
|
||||
"" TEXT OBJECTS
|
||||
onoremap ib :exec "normal! ggVG"<CR>
|
||||
onoremap iv :exec "normal! HVL"<CR>
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "smart-gen-tags";
|
||||
buildInputs = [ pkgs.bash pkgs.universal-ctags pkgs.git ];
|
||||
src = ./.;
|
||||
|
||||
buildPhase = ''
|
||||
sed '/\/usr\/bin\/env bash/aPATH=$PATH:${pkgs.git}\/bin:${pkgs.universal-ctags}\/bin' \
|
||||
< smart-gen-tags.sh \
|
||||
> smart-gen-tags
|
||||
|
||||
chmod +x smart-gen-tags
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp smart-gen-tags $out/bin/smart-gen-tags
|
||||
'';
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if test -n "${@:-}"; then
|
||||
ctags --totals --append $@
|
||||
elif test -d .git; then
|
||||
git ls-files --others --cached --modified --exclude-standard -z | xargs -0 ctags --totals
|
||||
else
|
||||
ctags -R .
|
||||
fi
|
Reference in New Issue